{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import bokeh.models"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on package bokeh.models in bokeh:\n",
      "\n",
      "NAME\n",
      "    bokeh.models - Provide Bokeh model \"building block\" classes.\n",
      "\n",
      "DESCRIPTION\n",
      "    One of the central design principals of Bokeh is that, regardless of\n",
      "    how the plot creation code is spelled in Python (or other languages),\n",
      "    the result is an object graph that encompasses all the visual and\n",
      "    data aspects of the scene. Furthermore, this *scene graph* is to be\n",
      "    serialized, and it is this serialized graph that the client library\n",
      "    BokehJS uses to render the plot. The low-level objects that comprise\n",
      "    a Bokeh scene graph are called :ref:`Models <bokeh.model>`.\n",
      "\n",
      "PACKAGE CONTENTS\n",
      "    annotations\n",
      "    arrow_heads\n",
      "    axes\n",
      "    callbacks\n",
      "    expressions\n",
      "    filters\n",
      "    formatters\n",
      "    glyph\n",
      "    glyphs\n",
      "    graphs\n",
      "    grids\n",
      "    layouts\n",
      "    map_plots\n",
      "    mappers\n",
      "    markers\n",
      "    plots\n",
      "    ranges\n",
      "    renderers\n",
      "    scales\n",
      "    selections\n",
      "    sources\n",
      "    textures\n",
      "    tickers\n",
      "    tiles\n",
      "    tools\n",
      "    transforms\n",
      "    widgets (package)\n",
      "\n",
      "SUBMODULES\n",
      "    buttons\n",
      "    groups\n",
      "    icons\n",
      "    inputs\n",
      "    markups\n",
      "    panels\n",
      "    sliders\n",
      "    tables\n",
      "    widget\n",
      "\n",
      "DATA\n",
      "    log = <Logger bokeh.models.widgets (WARNING)>\n",
      "\n",
      "FILE\n",
      "    c:\\users\\86188\\anaconda3\\lib\\site-packages\\bokeh\\models\\__init__.py\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(bokeh.models)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "    <div class=\"bk-root\">\n",
       "        <a href=\"https://bokeh.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n",
       "        <span id=\"1001\">Loading BokehJS ...</span>\n",
       "    </div>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "\n",
       "(function(root) {\n",
       "  function now() {\n",
       "    return new Date();\n",
       "  }\n",
       "\n",
       "  var force = true;\n",
       "\n",
       "  if (typeof root._bokeh_onload_callbacks === \"undefined\" || force === true) {\n",
       "    root._bokeh_onload_callbacks = [];\n",
       "    root._bokeh_is_loading = undefined;\n",
       "  }\n",
       "\n",
       "  var JS_MIME_TYPE = 'application/javascript';\n",
       "  var HTML_MIME_TYPE = 'text/html';\n",
       "  var EXEC_MIME_TYPE = 'application/vnd.bokehjs_exec.v0+json';\n",
       "  var CLASS_NAME = 'output_bokeh rendered_html';\n",
       "\n",
       "  /**\n",
       "   * Render data to the DOM node\n",
       "   */\n",
       "  function render(props, node) {\n",
       "    var script = document.createElement(\"script\");\n",
       "    node.appendChild(script);\n",
       "  }\n",
       "\n",
       "  /**\n",
       "   * Handle when an output is cleared or removed\n",
       "   */\n",
       "  function handleClearOutput(event, handle) {\n",
       "    var cell = handle.cell;\n",
       "\n",
       "    var id = cell.output_area._bokeh_element_id;\n",
       "    var server_id = cell.output_area._bokeh_server_id;\n",
       "    // Clean up Bokeh references\n",
       "    if (id != null && id in Bokeh.index) {\n",
       "      Bokeh.index[id].model.document.clear();\n",
       "      delete Bokeh.index[id];\n",
       "    }\n",
       "\n",
       "    if (server_id !== undefined) {\n",
       "      // Clean up Bokeh references\n",
       "      var cmd = \"from bokeh.io.state import curstate; print(curstate().uuid_to_server['\" + server_id + \"'].get_sessions()[0].document.roots[0]._id)\";\n",
       "      cell.notebook.kernel.execute(cmd, {\n",
       "        iopub: {\n",
       "          output: function(msg) {\n",
       "            var id = msg.content.text.trim();\n",
       "            if (id in Bokeh.index) {\n",
       "              Bokeh.index[id].model.document.clear();\n",
       "              delete Bokeh.index[id];\n",
       "            }\n",
       "          }\n",
       "        }\n",
       "      });\n",
       "      // Destroy server and session\n",
       "      var cmd = \"import bokeh.io.notebook as ion; ion.destroy_server('\" + server_id + \"')\";\n",
       "      cell.notebook.kernel.execute(cmd);\n",
       "    }\n",
       "  }\n",
       "\n",
       "  /**\n",
       "   * Handle when a new output is added\n",
       "   */\n",
       "  function handleAddOutput(event, handle) {\n",
       "    var output_area = handle.output_area;\n",
       "    var output = handle.output;\n",
       "\n",
       "    // limit handleAddOutput to display_data with EXEC_MIME_TYPE content only\n",
       "    if ((output.output_type != \"display_data\") || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n",
       "      return\n",
       "    }\n",
       "\n",
       "    var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n",
       "\n",
       "    if (output.metadata[EXEC_MIME_TYPE][\"id\"] !== undefined) {\n",
       "      toinsert[toinsert.length - 1].firstChild.textContent = output.data[JS_MIME_TYPE];\n",
       "      // store reference to embed id on output_area\n",
       "      output_area._bokeh_element_id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n",
       "    }\n",
       "    if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n",
       "      var bk_div = document.createElement(\"div\");\n",
       "      bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n",
       "      var script_attrs = bk_div.children[0].attributes;\n",
       "      for (var i = 0; i < script_attrs.length; i++) {\n",
       "        toinsert[toinsert.length - 1].firstChild.setAttribute(script_attrs[i].name, script_attrs[i].value);\n",
       "        toinsert[toinsert.length - 1].firstChild.textContent = bk_div.children[0].textContent\n",
       "      }\n",
       "      // store reference to server id on output_area\n",
       "      output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n",
       "    }\n",
       "  }\n",
       "\n",
       "  function register_renderer(events, OutputArea) {\n",
       "\n",
       "    function append_mime(data, metadata, element) {\n",
       "      // create a DOM node to render to\n",
       "      var toinsert = this.create_output_subarea(\n",
       "        metadata,\n",
       "        CLASS_NAME,\n",
       "        EXEC_MIME_TYPE\n",
       "      );\n",
       "      this.keyboard_manager.register_events(toinsert);\n",
       "      // Render to node\n",
       "      var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n",
       "      render(props, toinsert[toinsert.length - 1]);\n",
       "      element.append(toinsert);\n",
       "      return toinsert\n",
       "    }\n",
       "\n",
       "    /* Handle when an output is cleared or removed */\n",
       "    events.on('clear_output.CodeCell', handleClearOutput);\n",
       "    events.on('delete.Cell', handleClearOutput);\n",
       "\n",
       "    /* Handle when a new output is added */\n",
       "    events.on('output_added.OutputArea', handleAddOutput);\n",
       "\n",
       "    /**\n",
       "     * Register the mime type and append_mime function with output_area\n",
       "     */\n",
       "    OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n",
       "      /* Is output safe? */\n",
       "      safe: true,\n",
       "      /* Index of renderer in `output_area.display_order` */\n",
       "      index: 0\n",
       "    });\n",
       "  }\n",
       "\n",
       "  // register the mime type if in Jupyter Notebook environment and previously unregistered\n",
       "  if (root.Jupyter !== undefined) {\n",
       "    var events = require('base/js/events');\n",
       "    var OutputArea = require('notebook/js/outputarea').OutputArea;\n",
       "\n",
       "    if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n",
       "      register_renderer(events, OutputArea);\n",
       "    }\n",
       "  }\n",
       "\n",
       "  \n",
       "  if (typeof (root._bokeh_timeout) === \"undefined\" || force === true) {\n",
       "    root._bokeh_timeout = Date.now() + 5000;\n",
       "    root._bokeh_failed_load = false;\n",
       "  }\n",
       "\n",
       "  var NB_LOAD_WARNING = {'data': {'text/html':\n",
       "     \"<div style='background-color: #fdd'>\\n\"+\n",
       "     \"<p>\\n\"+\n",
       "     \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n",
       "     \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n",
       "     \"</p>\\n\"+\n",
       "     \"<ul>\\n\"+\n",
       "     \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n",
       "     \"<li>use INLINE resources instead, as so:</li>\\n\"+\n",
       "     \"</ul>\\n\"+\n",
       "     \"<code>\\n\"+\n",
       "     \"from bokeh.resources import INLINE\\n\"+\n",
       "     \"output_notebook(resources=INLINE)\\n\"+\n",
       "     \"</code>\\n\"+\n",
       "     \"</div>\"}};\n",
       "\n",
       "  function display_loaded() {\n",
       "    var el = document.getElementById(\"1001\");\n",
       "    if (el != null) {\n",
       "      el.textContent = \"BokehJS is loading...\";\n",
       "    }\n",
       "    if (root.Bokeh !== undefined) {\n",
       "      if (el != null) {\n",
       "        el.textContent = \"BokehJS \" + root.Bokeh.version + \" successfully loaded.\";\n",
       "      }\n",
       "    } else if (Date.now() < root._bokeh_timeout) {\n",
       "      setTimeout(display_loaded, 100)\n",
       "    }\n",
       "  }\n",
       "\n",
       "\n",
       "  function run_callbacks() {\n",
       "    try {\n",
       "      root._bokeh_onload_callbacks.forEach(function(callback) {\n",
       "        if (callback != null)\n",
       "          callback();\n",
       "      });\n",
       "    } finally {\n",
       "      delete root._bokeh_onload_callbacks\n",
       "    }\n",
       "    console.debug(\"Bokeh: all callbacks have finished\");\n",
       "  }\n",
       "\n",
       "  function load_libs(css_urls, js_urls, callback) {\n",
       "    if (css_urls == null) css_urls = [];\n",
       "    if (js_urls == null) js_urls = [];\n",
       "\n",
       "    root._bokeh_onload_callbacks.push(callback);\n",
       "    if (root._bokeh_is_loading > 0) {\n",
       "      console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
       "      return null;\n",
       "    }\n",
       "    if (js_urls == null || js_urls.length === 0) {\n",
       "      run_callbacks();\n",
       "      return null;\n",
       "    }\n",
       "    console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
       "    root._bokeh_is_loading = css_urls.length + js_urls.length;\n",
       "\n",
       "    function on_load() {\n",
       "      root._bokeh_is_loading--;\n",
       "      if (root._bokeh_is_loading === 0) {\n",
       "        console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n",
       "        run_callbacks()\n",
       "      }\n",
       "    }\n",
       "\n",
       "    function on_error() {\n",
       "      console.error(\"failed to load \" + url);\n",
       "    }\n",
       "\n",
       "    for (var i = 0; i < css_urls.length; i++) {\n",
       "      var url = css_urls[i];\n",
       "      const element = document.createElement(\"link\");\n",
       "      element.onload = on_load;\n",
       "      element.onerror = on_error;\n",
       "      element.rel = \"stylesheet\";\n",
       "      element.type = \"text/css\";\n",
       "      element.href = url;\n",
       "      console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n",
       "      document.body.appendChild(element);\n",
       "    }\n",
       "\n",
       "    const hashes = {\"https://cdn.bokeh.org/bokeh/release/bokeh-2.1.1.min.js\": \"kLr4fYcqcSpbuI95brIH3vnnYCquzzSxHPU6XGQCIkQRGJwhg0StNbj1eegrHs12\", \"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.1.1.min.js\": \"xIGPmVtaOm+z0BqfSOMn4lOR6ciex448GIKG4eE61LsAvmGj48XcMQZtKcE/UXZe\", \"https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.1.1.min.js\": \"Dc9u1wF/0zApGIWoBbH77iWEHtdmkuYWG839Uzmv8y8yBLXebjO9ZnERsde5Ln/P\", \"https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.1.1.min.js\": \"cT9JaBz7GiRXdENrJLZNSC6eMNF3nh3fa5fTF51Svp+ukxPdwcU5kGXGPBgDCa2j\"};\n",
       "\n",
       "    for (var i = 0; i < js_urls.length; i++) {\n",
       "      var url = js_urls[i];\n",
       "      var element = document.createElement('script');\n",
       "      element.onload = on_load;\n",
       "      element.onerror = on_error;\n",
       "      element.async = false;\n",
       "      element.src = url;\n",
       "      if (url in hashes) {\n",
       "        element.crossOrigin = \"anonymous\";\n",
       "        element.integrity = \"sha384-\" + hashes[url];\n",
       "      }\n",
       "      console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
       "      document.head.appendChild(element);\n",
       "    }\n",
       "  };\n",
       "\n",
       "  function inject_raw_css(css) {\n",
       "    const element = document.createElement(\"style\");\n",
       "    element.appendChild(document.createTextNode(css));\n",
       "    document.body.appendChild(element);\n",
       "  }\n",
       "\n",
       "  \n",
       "  var js_urls = [\"https://cdn.bokeh.org/bokeh/release/bokeh-2.1.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.1.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.1.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.1.1.min.js\"];\n",
       "  var css_urls = [];\n",
       "  \n",
       "\n",
       "  var inline_js = [\n",
       "    function(Bokeh) {\n",
       "      Bokeh.set_log_level(\"info\");\n",
       "    },\n",
       "    function(Bokeh) {\n",
       "    \n",
       "    \n",
       "    }\n",
       "  ];\n",
       "\n",
       "  function run_inline_js() {\n",
       "    \n",
       "    if (root.Bokeh !== undefined || force === true) {\n",
       "      \n",
       "    for (var i = 0; i < inline_js.length; i++) {\n",
       "      inline_js[i].call(root, root.Bokeh);\n",
       "    }\n",
       "    if (force === true) {\n",
       "        display_loaded();\n",
       "      }} else if (Date.now() < root._bokeh_timeout) {\n",
       "      setTimeout(run_inline_js, 100);\n",
       "    } else if (!root._bokeh_failed_load) {\n",
       "      console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
       "      root._bokeh_failed_load = true;\n",
       "    } else if (force !== true) {\n",
       "      var cell = $(document.getElementById(\"1001\")).parents('.cell').data().cell;\n",
       "      cell.output_area.append_execute_result(NB_LOAD_WARNING)\n",
       "    }\n",
       "\n",
       "  }\n",
       "\n",
       "  if (root._bokeh_is_loading === 0) {\n",
       "    console.debug(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
       "    run_inline_js();\n",
       "  } else {\n",
       "    load_libs(css_urls, js_urls, function() {\n",
       "      console.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n",
       "      run_inline_js();\n",
       "    });\n",
       "  }\n",
       "}(window));"
      ],
      "application/vnd.bokehjs_load.v0+json": "\n(function(root) {\n  function now() {\n    return new Date();\n  }\n\n  var force = true;\n\n  if (typeof root._bokeh_onload_callbacks === \"undefined\" || force === true) {\n    root._bokeh_onload_callbacks = [];\n    root._bokeh_is_loading = undefined;\n  }\n\n  \n\n  \n  if (typeof (root._bokeh_timeout) === \"undefined\" || force === true) {\n    root._bokeh_timeout = Date.now() + 5000;\n    root._bokeh_failed_load = false;\n  }\n\n  var NB_LOAD_WARNING = {'data': {'text/html':\n     \"<div style='background-color: #fdd'>\\n\"+\n     \"<p>\\n\"+\n     \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n     \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n     \"</p>\\n\"+\n     \"<ul>\\n\"+\n     \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n     \"<li>use INLINE resources instead, as so:</li>\\n\"+\n     \"</ul>\\n\"+\n     \"<code>\\n\"+\n     \"from bokeh.resources import INLINE\\n\"+\n     \"output_notebook(resources=INLINE)\\n\"+\n     \"</code>\\n\"+\n     \"</div>\"}};\n\n  function display_loaded() {\n    var el = document.getElementById(\"1001\");\n    if (el != null) {\n      el.textContent = \"BokehJS is loading...\";\n    }\n    if (root.Bokeh !== undefined) {\n      if (el != null) {\n        el.textContent = \"BokehJS \" + root.Bokeh.version + \" successfully loaded.\";\n      }\n    } else if (Date.now() < root._bokeh_timeout) {\n      setTimeout(display_loaded, 100)\n    }\n  }\n\n\n  function run_callbacks() {\n    try {\n      root._bokeh_onload_callbacks.forEach(function(callback) {\n        if (callback != null)\n          callback();\n      });\n    } finally {\n      delete root._bokeh_onload_callbacks\n    }\n    console.debug(\"Bokeh: all callbacks have finished\");\n  }\n\n  function load_libs(css_urls, js_urls, callback) {\n    if (css_urls == null) css_urls = [];\n    if (js_urls == null) js_urls = [];\n\n    root._bokeh_onload_callbacks.push(callback);\n    if (root._bokeh_is_loading > 0) {\n      console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n      return null;\n    }\n    if (js_urls == null || js_urls.length === 0) {\n      run_callbacks();\n      return null;\n    }\n    console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n    root._bokeh_is_loading = css_urls.length + js_urls.length;\n\n    function on_load() {\n      root._bokeh_is_loading--;\n      if (root._bokeh_is_loading === 0) {\n        console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n        run_callbacks()\n      }\n    }\n\n    function on_error() {\n      console.error(\"failed to load \" + url);\n    }\n\n    for (var i = 0; i < css_urls.length; i++) {\n      var url = css_urls[i];\n      const element = document.createElement(\"link\");\n      element.onload = on_load;\n      element.onerror = on_error;\n      element.rel = \"stylesheet\";\n      element.type = \"text/css\";\n      element.href = url;\n      console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n      document.body.appendChild(element);\n    }\n\n    const hashes = {\"https://cdn.bokeh.org/bokeh/release/bokeh-2.1.1.min.js\": \"kLr4fYcqcSpbuI95brIH3vnnYCquzzSxHPU6XGQCIkQRGJwhg0StNbj1eegrHs12\", \"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.1.1.min.js\": \"xIGPmVtaOm+z0BqfSOMn4lOR6ciex448GIKG4eE61LsAvmGj48XcMQZtKcE/UXZe\", \"https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.1.1.min.js\": \"Dc9u1wF/0zApGIWoBbH77iWEHtdmkuYWG839Uzmv8y8yBLXebjO9ZnERsde5Ln/P\", \"https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.1.1.min.js\": \"cT9JaBz7GiRXdENrJLZNSC6eMNF3nh3fa5fTF51Svp+ukxPdwcU5kGXGPBgDCa2j\"};\n\n    for (var i = 0; i < js_urls.length; i++) {\n      var url = js_urls[i];\n      var element = document.createElement('script');\n      element.onload = on_load;\n      element.onerror = on_error;\n      element.async = false;\n      element.src = url;\n      if (url in hashes) {\n        element.crossOrigin = \"anonymous\";\n        element.integrity = \"sha384-\" + hashes[url];\n      }\n      console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n      document.head.appendChild(element);\n    }\n  };\n\n  function inject_raw_css(css) {\n    const element = document.createElement(\"style\");\n    element.appendChild(document.createTextNode(css));\n    document.body.appendChild(element);\n  }\n\n  \n  var js_urls = [\"https://cdn.bokeh.org/bokeh/release/bokeh-2.1.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.1.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.1.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.1.1.min.js\"];\n  var css_urls = [];\n  \n\n  var inline_js = [\n    function(Bokeh) {\n      Bokeh.set_log_level(\"info\");\n    },\n    function(Bokeh) {\n    \n    \n    }\n  ];\n\n  function run_inline_js() {\n    \n    if (root.Bokeh !== undefined || force === true) {\n      \n    for (var i = 0; i < inline_js.length; i++) {\n      inline_js[i].call(root, root.Bokeh);\n    }\n    if (force === true) {\n        display_loaded();\n      }} else if (Date.now() < root._bokeh_timeout) {\n      setTimeout(run_inline_js, 100);\n    } else if (!root._bokeh_failed_load) {\n      console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n      root._bokeh_failed_load = true;\n    } else if (force !== true) {\n      var cell = $(document.getElementById(\"1001\")).parents('.cell').data().cell;\n      cell.output_area.append_execute_result(NB_LOAD_WARNING)\n    }\n\n  }\n\n  if (root._bokeh_is_loading === 0) {\n    console.debug(\"Bokeh: BokehJS loaded, going straight to plotting\");\n    run_inline_js();\n  } else {\n    load_libs(css_urls, js_urls, function() {\n      console.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n      run_inline_js();\n    });\n  }\n}(window));"
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import numpy as np\n",
    "from bokeh.plotting import figure, show, output_notebook\n",
    "from bokeh.layouts import gridplot\n",
    "output_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 绘制基本图形"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"95a0decb-6fde-4891-ba81-5d38dece42cb\" data-root-id=\"2648\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"dfae958e-f852-4094-8d84-d79bcc6d1803\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"2659\"}],\"center\":[{\"id\":\"2662\"},{\"id\":\"2666\"}],\"left\":[{\"id\":\"2663\"}],\"renderers\":[{\"id\":\"2684\"}],\"title\":{\"id\":\"2649\"},\"toolbar\":{\"id\":\"2674\"},\"x_range\":{\"id\":\"2651\"},\"x_scale\":{\"id\":\"2655\"},\"y_range\":{\"id\":\"2653\"},\"y_scale\":{\"id\":\"2657\"}},\"id\":\"2648\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"data_source\":{\"id\":\"2681\"},\"glyph\":{\"id\":\"2682\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"2683\"},\"selection_glyph\":null,\"view\":{\"id\":\"2685\"}},\"id\":\"2684\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"2751\"},\"selection_policy\":{\"id\":\"2750\"}},\"id\":\"2681\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"2673\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"2750\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"2667\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"2751\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"2653\",\"type\":\"DataRange1d\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#8888ee\"},\"inner_radius\":{\"units\":\"screen\",\"value\":10},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#8888ee\"},\"outer_radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"2683\",\"type\":\"AnnularWedge\"},{\"attributes\":{},\"id\":\"2657\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"2655\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"2748\"},\"ticker\":{\"id\":\"2660\"}},\"id\":\"2659\",\"type\":\"LinearAxis\"},{\"attributes\":{\"axis\":{\"id\":\"2659\"},\"ticker\":null},\"id\":\"2662\",\"type\":\"Grid\"},{\"attributes\":{\"text\":\"annular_wedge\"},\"id\":\"2649\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"2651\",\"type\":\"DataRange1d\"},{\"attributes\":{\"formatter\":{\"id\":\"2746\"},\"ticker\":{\"id\":\"2664\"}},\"id\":\"2663\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"2660\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"2746\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"2664\",\"type\":\"BasicTicker\"},{\"attributes\":{\"source\":{\"id\":\"2681\"}},\"id\":\"2685\",\"type\":\"CDSView\"},{\"attributes\":{\"axis\":{\"id\":\"2663\"},\"dimension\":1,\"ticker\":null},\"id\":\"2666\",\"type\":\"Grid\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"2667\"},{\"id\":\"2668\"},{\"id\":\"2669\"},{\"id\":\"2670\"},{\"id\":\"2671\"},{\"id\":\"2672\"}]},\"id\":\"2674\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"2668\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"fill_color\":{\"value\":\"#8888ee\"},\"inner_radius\":{\"units\":\"screen\",\"value\":10},\"line_color\":{\"value\":\"#8888ee\"},\"outer_radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"2682\",\"type\":\"AnnularWedge\"},{\"attributes\":{},\"id\":\"2672\",\"type\":\"HelpTool\"},{\"attributes\":{\"overlay\":{\"id\":\"2673\"}},\"id\":\"2669\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"2748\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"2670\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"2671\",\"type\":\"ResetTool\"}],\"root_ids\":[\"2648\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"dfae958e-f852-4094-8d84-d79bcc6d1803\",\"root_ids\":[\"2648\"],\"roots\":{\"2648\":\"95a0decb-6fde-4891-ba81-5d38dece42cb\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "2648"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "N = 9\n",
    "x = np.linspace(-2, 2, N)\n",
    "y = x**2\n",
    "sizes = np.linspace(10, 20, N)\n",
    "xpts = np.array([-.09, -.12, .0, .12, .09])\n",
    "ypts = np.array([-.1, .02, .1, .02, -.1])\n",
    "\n",
    "p = figure(title=\"annular_wedge\")\n",
    "p.annular_wedge(x, y, 10, 20, 0.6, 4.1, color=\"#8888ee\",\n",
    "    inner_radius_units=\"screen\", outer_radius_units=\"screen\")\n",
    "\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"cf23198c-4d6f-45ff-a6aa-009753f824d4\" data-root-id=\"2360\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"9ff45f9f-ad75-4537-b179-82c93165fcab\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"2371\"}],\"center\":[{\"id\":\"2374\"},{\"id\":\"2378\"}],\"left\":[{\"id\":\"2375\"}],\"renderers\":[{\"id\":\"2396\"}],\"title\":{\"id\":\"2361\"},\"toolbar\":{\"id\":\"2386\"},\"x_range\":{\"id\":\"2363\"},\"x_scale\":{\"id\":\"2367\"},\"y_range\":{\"id\":\"2365\"},\"y_scale\":{\"id\":\"2369\"}},\"id\":\"2360\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"2379\"},{\"id\":\"2380\"},{\"id\":\"2381\"},{\"id\":\"2382\"},{\"id\":\"2383\"},{\"id\":\"2384\"}]},\"id\":\"2386\",\"type\":\"Toolbar\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"2455\"},\"selection_policy\":{\"id\":\"2454\"}},\"id\":\"2393\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"2380\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"2367\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"2452\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"2385\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"2369\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"2450\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#7FC97F\"},\"inner_radius\":{\"units\":\"screen\",\"value\":10},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#7FC97F\"},\"outer_radius\":{\"units\":\"screen\",\"value\":20},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"2395\",\"type\":\"Annulus\"},{\"attributes\":{},\"id\":\"2379\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"2372\",\"type\":\"BasicTicker\"},{\"attributes\":{\"axis\":{\"id\":\"2371\"},\"ticker\":null},\"id\":\"2374\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"2363\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data_source\":{\"id\":\"2393\"},\"glyph\":{\"id\":\"2394\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"2395\"},\"selection_glyph\":null,\"view\":{\"id\":\"2397\"}},\"id\":\"2396\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"2454\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"2382\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"2455\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"2383\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"2376\",\"type\":\"BasicTicker\"},{\"attributes\":{\"overlay\":{\"id\":\"2385\"}},\"id\":\"2381\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"formatter\":{\"id\":\"2452\"},\"ticker\":{\"id\":\"2372\"}},\"id\":\"2371\",\"type\":\"LinearAxis\"},{\"attributes\":{\"text\":\"annulus\"},\"id\":\"2361\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"2384\",\"type\":\"HelpTool\"},{\"attributes\":{\"axis\":{\"id\":\"2375\"},\"dimension\":1,\"ticker\":null},\"id\":\"2378\",\"type\":\"Grid\"},{\"attributes\":{\"formatter\":{\"id\":\"2450\"},\"ticker\":{\"id\":\"2376\"}},\"id\":\"2375\",\"type\":\"LinearAxis\"},{\"attributes\":{\"source\":{\"id\":\"2393\"}},\"id\":\"2397\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"2365\",\"type\":\"DataRange1d\"},{\"attributes\":{\"fill_color\":{\"value\":\"#7FC97F\"},\"inner_radius\":{\"units\":\"screen\",\"value\":10},\"line_color\":{\"value\":\"#7FC97F\"},\"outer_radius\":{\"units\":\"screen\",\"value\":20},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"2394\",\"type\":\"Annulus\"}],\"root_ids\":[\"2360\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"9ff45f9f-ad75-4537-b179-82c93165fcab\",\"root_ids\":[\"2360\"],\"roots\":{\"2360\":\"cf23198c-4d6f-45ff-a6aa-009753f824d4\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "2360"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "N = 9\n",
    "x = np.linspace(-2, 2, N)\n",
    "y = x**2\n",
    "sizes = np.linspace(10, 20, N)\n",
    "xpts = np.array([-.09, -.12, .0, .12, .09])\n",
    "ypts = np.array([-.1, .02, .1, .02, -.1])\n",
    "\n",
    "p = figure(title=\"annulus\")\n",
    "p.annulus(x, y, 10, 20, color=\"#7FC97F\",\n",
    "    inner_radius_units=\"screen\", outer_radius_units = \"screen\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"19113504-e547-4e93-b0e9-a27f8868f441\" data-root-id=\"3465\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"7173c73c-a165-485b-97e7-98bd180ea35c\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"3476\"}],\"center\":[{\"id\":\"3479\"},{\"id\":\"3483\"}],\"left\":[{\"id\":\"3480\"}],\"renderers\":[{\"id\":\"3501\"}],\"title\":{\"id\":\"3466\"},\"toolbar\":{\"id\":\"3491\"},\"x_range\":{\"id\":\"3468\"},\"x_scale\":{\"id\":\"3472\"},\"y_range\":{\"id\":\"3470\"},\"y_scale\":{\"id\":\"3474\"}},\"id\":\"3465\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"3484\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"3593\",\"type\":\"Selection\"},{\"attributes\":{\"formatter\":{\"id\":\"3588\"},\"ticker\":{\"id\":\"3481\"}},\"id\":\"3480\",\"type\":\"LinearAxis\"},{\"attributes\":{\"data_source\":{\"id\":\"3498\"},\"glyph\":{\"id\":\"3499\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"3500\"},\"selection_glyph\":null,\"view\":{\"id\":\"3502\"}},\"id\":\"3501\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"3481\",\"type\":\"BasicTicker\"},{\"attributes\":{\"text\":\"arc\"},\"id\":\"3466\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"3488\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"3474\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"3485\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#BEAED4\"},\"line_width\":{\"value\":3},\"radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"3500\",\"type\":\"Arc\"},{\"attributes\":{\"axis\":{\"id\":\"3480\"},\"dimension\":1,\"ticker\":null},\"id\":\"3483\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"3472\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"3588\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"3470\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"3487\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"3592\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"3477\",\"type\":\"BasicTicker\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"3593\"},\"selection_policy\":{\"id\":\"3592\"}},\"id\":\"3498\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"3484\"},{\"id\":\"3485\"},{\"id\":\"3486\"},{\"id\":\"3487\"},{\"id\":\"3488\"},{\"id\":\"3489\"}]},\"id\":\"3491\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"3489\",\"type\":\"HelpTool\"},{\"attributes\":{\"axis\":{\"id\":\"3476\"},\"ticker\":null},\"id\":\"3479\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"3590\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"formatter\":{\"id\":\"3590\"},\"ticker\":{\"id\":\"3477\"}},\"id\":\"3476\",\"type\":\"LinearAxis\"},{\"attributes\":{\"source\":{\"id\":\"3498\"}},\"id\":\"3502\",\"type\":\"CDSView\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"3490\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"overlay\":{\"id\":\"3490\"}},\"id\":\"3486\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"line_color\":{\"value\":\"#BEAED4\"},\"line_width\":{\"value\":3},\"radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"3499\",\"type\":\"Arc\"},{\"attributes\":{},\"id\":\"3468\",\"type\":\"DataRange1d\"}],\"root_ids\":[\"3465\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"7173c73c-a165-485b-97e7-98bd180ea35c\",\"root_ids\":[\"3465\"],\"roots\":{\"3465\":\"19113504-e547-4e93-b0e9-a27f8868f441\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "3465"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"arc\")\n",
    "p.arc(x, y, 20, 0.6, 4.1,\n",
    "    radius_units=\"screen\", color=\"#BEAED4\", line_width=3)\n",
    "figures.append(p)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"5eba6910-9a9b-4350-91e7-bea14e9eee7c\" data-root-id=\"3748\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"cabea343-b5d6-497d-a278-e1e537575be7\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"3759\"}],\"center\":[{\"id\":\"3762\"},{\"id\":\"3766\"}],\"left\":[{\"id\":\"3763\"}],\"renderers\":[{\"id\":\"3784\"}],\"title\":{\"id\":\"3749\"},\"toolbar\":{\"id\":\"3774\"},\"x_range\":{\"id\":\"3751\"},\"x_scale\":{\"id\":\"3755\"},\"y_range\":{\"id\":\"3753\"},\"y_scale\":{\"id\":\"3757\"}},\"id\":\"3748\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"3751\",\"type\":\"DataRange1d\"},{\"attributes\":{\"source\":{\"id\":\"3781\"}},\"id\":\"3785\",\"type\":\"CDSView\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"3773\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"axis\":{\"id\":\"3759\"},\"ticker\":null},\"id\":\"3762\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"3768\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"3753\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"3755\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"3881\"},\"ticker\":{\"id\":\"3760\"}},\"id\":\"3759\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"3757\",\"type\":\"LinearScale\"},{\"attributes\":{\"data\":{\"cx0\":{\"__ndarray__\":\"ZmZmZmZm/r9mZmZmZmb2v83MzMzMzOy/mpmZmZmZ2b+amZmZmZm5PzMzMzMzM+M/mpmZmZmZ8T+amZmZmZn5P83MzMzMzABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"cx1\":{\"__ndarray__\":\"zczMzMzMAMCamZmZmZn5v5qZmZmZmfG/MzMzMzMz47+amZmZmZm5v5qZmZmZmdk/zczMzMzM7D9mZmZmZmb2P2ZmZmZmZv4/\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"cy0\":{\"__ndarray__\":\"ZmZmZmZmEEDNzMzMzMwCQJqZmZmZmfE/ZmZmZmZm1j+amZmZmZm5P2ZmZmZmZtY/mpmZmZmZ8T/NzMzMzMwCQGZmZmZmZhBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"cy1\":{\"__ndarray__\":\"MzMzMzMzD0AzMzMzMzMBQM3MzMzMzOw/MzMzMzMzwz+amZmZmZm5vzMzMzMzM8M/zczMzMzM7D8zMzMzMzMBQDMzMzMzMw9A\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x0\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x1\":{\"__ndarray__\":\"zczMzMzM/L/NzMzMzMz0v5qZmZmZmem/MzMzMzMz07+amZmZmZnJP2ZmZmZmZuY/MzMzMzMz8z8zMzMzMzP7P5qZmZmZmQFA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y0\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y1\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"3884\"},\"selection_policy\":{\"id\":\"3883\"}},\"id\":\"3781\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"3772\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"3879\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"3881\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"cx0\":{\"field\":\"cx0\"},\"cx1\":{\"field\":\"cx1\"},\"cy0\":{\"field\":\"cy0\"},\"cy1\":{\"field\":\"cy1\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#D95F02\"},\"line_width\":{\"value\":2},\"x0\":{\"field\":\"x0\"},\"x1\":{\"field\":\"x1\"},\"y0\":{\"field\":\"y0\"},\"y1\":{\"field\":\"y1\"}},\"id\":\"3783\",\"type\":\"Bezier\"},{\"attributes\":{\"axis\":{\"id\":\"3763\"},\"dimension\":1,\"ticker\":null},\"id\":\"3766\",\"type\":\"Grid\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"3767\"},{\"id\":\"3768\"},{\"id\":\"3769\"},{\"id\":\"3770\"},{\"id\":\"3771\"},{\"id\":\"3772\"}]},\"id\":\"3774\",\"type\":\"Toolbar\"},{\"attributes\":{\"data_source\":{\"id\":\"3781\"},\"glyph\":{\"id\":\"3782\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"3783\"},\"selection_glyph\":null,\"view\":{\"id\":\"3785\"}},\"id\":\"3784\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"overlay\":{\"id\":\"3773\"}},\"id\":\"3769\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"text\":\"bezier\"},\"id\":\"3749\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"3771\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"3770\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"3764\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"3884\",\"type\":\"Selection\"},{\"attributes\":{\"formatter\":{\"id\":\"3879\"},\"ticker\":{\"id\":\"3764\"}},\"id\":\"3763\",\"type\":\"LinearAxis\"},{\"attributes\":{\"cx0\":{\"field\":\"cx0\"},\"cx1\":{\"field\":\"cx1\"},\"cy0\":{\"field\":\"cy0\"},\"cy1\":{\"field\":\"cy1\"},\"line_color\":{\"value\":\"#D95F02\"},\"line_width\":{\"value\":2},\"x0\":{\"field\":\"x0\"},\"x1\":{\"field\":\"x1\"},\"y0\":{\"field\":\"y0\"},\"y1\":{\"field\":\"y1\"}},\"id\":\"3782\",\"type\":\"Bezier\"},{\"attributes\":{},\"id\":\"3760\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"3883\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"3767\",\"type\":\"PanTool\"}],\"root_ids\":[\"3748\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"cabea343-b5d6-497d-a278-e1e537575be7\",\"root_ids\":[\"3748\"],\"roots\":{\"3748\":\"5eba6910-9a9b-4350-91e7-bea14e9eee7c\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "3748"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"bezier\")\n",
    "p.bezier(x, y, x+0.2, y, x+0.1, y+0.1, x-0.1, y-0.1,color=\"#D95F02\", line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"4bbf0472-529b-4b29-b265-86b80ad96c92\" data-root-id=\"4039\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"27563cad-be27-4b78-b721-0f9d777ca6aa\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"4050\"}],\"center\":[{\"id\":\"4053\"},{\"id\":\"4057\"}],\"left\":[{\"id\":\"4054\"}],\"renderers\":[{\"id\":\"4075\"}],\"title\":{\"id\":\"4040\"},\"toolbar\":{\"id\":\"4065\"},\"x_range\":{\"id\":\"4042\"},\"x_scale\":{\"id\":\"4046\"},\"y_range\":{\"id\":\"4044\"},\"y_scale\":{\"id\":\"4048\"}},\"id\":\"4039\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"formatter\":{\"id\":\"4178\"},\"ticker\":{\"id\":\"4055\"}},\"id\":\"4054\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"4055\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"4046\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"4044\",\"type\":\"DataRange1d\"},{\"attributes\":{\"fill_color\":{\"value\":\"#3288BD\"},\"line_color\":{\"value\":\"#3288BD\"},\"radius\":{\"units\":\"data\",\"value\":0.1},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4073\",\"type\":\"Circle\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"4183\"},\"selection_policy\":{\"id\":\"4182\"}},\"id\":\"4072\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"4072\"},\"glyph\":{\"id\":\"4073\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"4074\"},\"selection_glyph\":null,\"view\":{\"id\":\"4076\"}},\"id\":\"4075\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"4183\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"4048\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"4180\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"4042\",\"type\":\"DataRange1d\"},{\"attributes\":{\"source\":{\"id\":\"4072\"}},\"id\":\"4076\",\"type\":\"CDSView\"},{\"attributes\":{\"formatter\":{\"id\":\"4180\"},\"ticker\":{\"id\":\"4051\"}},\"id\":\"4050\",\"type\":\"LinearAxis\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"4064\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"4061\",\"type\":\"SaveTool\"},{\"attributes\":{\"axis\":{\"id\":\"4050\"},\"ticker\":null},\"id\":\"4053\",\"type\":\"Grid\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#3288BD\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#3288BD\"},\"radius\":{\"units\":\"data\",\"value\":0.1},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4074\",\"type\":\"Circle\"},{\"attributes\":{\"axis\":{\"id\":\"4054\"},\"dimension\":1,\"ticker\":null},\"id\":\"4057\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"4051\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"4059\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"4178\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"4063\",\"type\":\"HelpTool\"},{\"attributes\":{\"overlay\":{\"id\":\"4064\"}},\"id\":\"4060\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"4058\"},{\"id\":\"4059\"},{\"id\":\"4060\"},{\"id\":\"4061\"},{\"id\":\"4062\"},{\"id\":\"4063\"}]},\"id\":\"4065\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"4058\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"4062\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"4182\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"text\":\"circle\"},\"id\":\"4040\",\"type\":\"Title\"}],\"root_ids\":[\"4039\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"27563cad-be27-4b78-b721-0f9d777ca6aa\",\"root_ids\":[\"4039\"],\"roots\":{\"4039\":\"4bbf0472-529b-4b29-b265-86b80ad96c92\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "4039"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"circle\")\n",
    "p.circle(x, y, radius=0.1, color=\"#3288BD\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"87fb7edd-0587-4b20-9cbe-dca6adebdf14\" data-root-id=\"4338\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"e6bf08f4-944a-4844-ac33-46aa345d77fc\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"4349\"}],\"center\":[{\"id\":\"4352\"},{\"id\":\"4356\"}],\"left\":[{\"id\":\"4353\"}],\"renderers\":[{\"id\":\"4374\"}],\"title\":{\"id\":\"4339\"},\"toolbar\":{\"id\":\"4364\"},\"x_range\":{\"id\":\"4341\"},\"x_scale\":{\"id\":\"4345\"},\"y_range\":{\"id\":\"4343\"},\"y_scale\":{\"id\":\"4347\"}},\"id\":\"4338\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"4357\"},{\"id\":\"4358\"},{\"id\":\"4359\"},{\"id\":\"4360\"},{\"id\":\"4361\"},{\"id\":\"4362\"}]},\"id\":\"4364\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"4487\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"4489\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"axis\":{\"id\":\"4349\"},\"ticker\":null},\"id\":\"4352\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"4350\",\"type\":\"BasicTicker\"},{\"attributes\":{\"formatter\":{\"id\":\"4485\"},\"ticker\":{\"id\":\"4354\"}},\"id\":\"4353\",\"type\":\"LinearAxis\"},{\"attributes\":{\"formatter\":{\"id\":\"4487\"},\"ticker\":{\"id\":\"4350\"}},\"id\":\"4349\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"4343\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"4345\",\"type\":\"LinearScale\"},{\"attributes\":{\"overlay\":{\"id\":\"4363\"}},\"id\":\"4359\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"4490\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"4358\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"4360\",\"type\":\"SaveTool\"},{\"attributes\":{\"text\":\"ellipse\"},\"id\":\"4339\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"4362\",\"type\":\"HelpTool\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4373\",\"type\":\"Ellipse\"},{\"attributes\":{},\"id\":\"4347\",\"type\":\"LinearScale\"},{\"attributes\":{\"axis\":{\"id\":\"4353\"},\"dimension\":1,\"ticker\":null},\"id\":\"4356\",\"type\":\"Grid\"},{\"attributes\":{\"source\":{\"id\":\"4371\"}},\"id\":\"4375\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"4361\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"4354\",\"type\":\"BasicTicker\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4372\",\"type\":\"Ellipse\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"4490\"},\"selection_policy\":{\"id\":\"4489\"}},\"id\":\"4371\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"4485\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"4363\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"data_source\":{\"id\":\"4371\"},\"glyph\":{\"id\":\"4372\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"4373\"},\"selection_glyph\":null,\"view\":{\"id\":\"4375\"}},\"id\":\"4374\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"4357\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"4341\",\"type\":\"DataRange1d\"}],\"root_ids\":[\"4338\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"e6bf08f4-944a-4844-ac33-46aa345d77fc\",\"root_ids\":[\"4338\"],\"roots\":{\"4338\":\"87fb7edd-0587-4b20-9cbe-dca6adebdf14\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "4338"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"ellipse\")\n",
    "p.ellipse(x, y, 15, 25, angle=-0.7, color=\"#1D91C0\",\n",
    "    width_units=\"screen\", height_units=\"screen\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"bb1e90da-fcba-4a66-b17d-41116fdb4ca7\" data-root-id=\"4645\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"cb564838-0c3c-4e41-883e-62b990b4e1d4\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"4656\"}],\"center\":[{\"id\":\"4659\"},{\"id\":\"4663\"}],\"left\":[{\"id\":\"4660\"}],\"renderers\":[{\"id\":\"4681\"}],\"title\":{\"id\":\"4646\"},\"toolbar\":{\"id\":\"4671\"},\"x_range\":{\"id\":\"4648\"},\"x_scale\":{\"id\":\"4652\"},\"y_range\":{\"id\":\"4650\"},\"y_scale\":{\"id\":\"4654\"}},\"id\":\"4645\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"4804\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"4648\",\"type\":\"DataRange1d\"},{\"attributes\":{\"line_color\":\"#F46D43\",\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4679\",\"type\":\"Line\"},{\"attributes\":{\"axis\":{\"id\":\"4660\"},\"dimension\":1,\"ticker\":null},\"id\":\"4663\",\"type\":\"Grid\"},{\"attributes\":{\"formatter\":{\"id\":\"4800\"},\"ticker\":{\"id\":\"4661\"}},\"id\":\"4660\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"4657\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"4654\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"4668\",\"type\":\"ResetTool\"},{\"attributes\":{\"line_alpha\":0.1,\"line_color\":\"#F46D43\",\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4680\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"4805\",\"type\":\"Selection\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"4670\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"4669\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"4661\",\"type\":\"BasicTicker\"},{\"attributes\":{\"source\":{\"id\":\"4678\"}},\"id\":\"4682\",\"type\":\"CDSView\"},{\"attributes\":{\"formatter\":{\"id\":\"4802\"},\"ticker\":{\"id\":\"4657\"}},\"id\":\"4656\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"4800\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"4650\",\"type\":\"DataRange1d\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"4664\"},{\"id\":\"4665\"},{\"id\":\"4666\"},{\"id\":\"4667\"},{\"id\":\"4668\"},{\"id\":\"4669\"}]},\"id\":\"4671\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"4652\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"4802\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"4805\"},\"selection_policy\":{\"id\":\"4804\"}},\"id\":\"4678\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"4678\"},\"glyph\":{\"id\":\"4679\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"4680\"},\"selection_glyph\":null,\"view\":{\"id\":\"4682\"}},\"id\":\"4681\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"4665\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"text\":\"line\"},\"id\":\"4646\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"4664\",\"type\":\"PanTool\"},{\"attributes\":{\"overlay\":{\"id\":\"4670\"}},\"id\":\"4666\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"axis\":{\"id\":\"4656\"},\"ticker\":null},\"id\":\"4659\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"4667\",\"type\":\"SaveTool\"}],\"root_ids\":[\"4645\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"cb564838-0c3c-4e41-883e-62b990b4e1d4\",\"root_ids\":[\"4645\"],\"roots\":{\"4645\":\"bb1e90da-fcba-4a66-b17d-41116fdb4ca7\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "4645"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"line\")\n",
    "p.line(x, y, color=\"#F46D43\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"1cc5cedd-c75a-4239-a0d4-5bf41ba8c80e\" data-root-id=\"4645\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"29ae1002-91f2-46e1-bab2-7708cd8af447\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"4656\"}],\"center\":[{\"id\":\"4659\"},{\"id\":\"4663\"}],\"left\":[{\"id\":\"4660\"}],\"renderers\":[{\"id\":\"4681\"},{\"id\":\"4963\"}],\"title\":{\"id\":\"4646\"},\"toolbar\":{\"id\":\"4671\"},\"x_range\":{\"id\":\"4648\"},\"x_scale\":{\"id\":\"4652\"},\"y_range\":{\"id\":\"4650\"},\"y_scale\":{\"id\":\"4654\"}},\"id\":\"4645\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"source\":{\"id\":\"4960\"}},\"id\":\"4964\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"4804\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"4648\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data_source\":{\"id\":\"4960\"},\"glyph\":{\"id\":\"4961\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"4962\"},\"selection_glyph\":null,\"view\":{\"id\":\"4964\"}},\"id\":\"4963\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"line_color\":\"#F46D43\",\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4679\",\"type\":\"Line\"},{\"attributes\":{\"axis\":{\"id\":\"4660\"},\"dimension\":1,\"ticker\":null},\"id\":\"4663\",\"type\":\"Grid\"},{\"attributes\":{\"formatter\":{\"id\":\"4800\"},\"ticker\":{\"id\":\"4661\"}},\"id\":\"4660\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"4657\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"5089\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"4654\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"4668\",\"type\":\"ResetTool\"},{\"attributes\":{\"line_alpha\":0.1,\"line_color\":\"#F46D43\",\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4680\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"4805\",\"type\":\"Selection\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"4670\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"4669\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"4661\",\"type\":\"BasicTicker\"},{\"attributes\":{\"line_color\":{\"value\":\"#8073AC\"},\"line_width\":{\"value\":2},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"4961\",\"type\":\"MultiLine\"},{\"attributes\":{\"source\":{\"id\":\"4678\"}},\"id\":\"4682\",\"type\":\"CDSView\"},{\"attributes\":{\"formatter\":{\"id\":\"4802\"},\"ticker\":{\"id\":\"4657\"}},\"id\":\"4656\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"4800\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"4650\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data\":{\"xs\":[{\"__ndarray__\":\"uB6F61G4AMD2KFyPwvUAwAAAAAAAAADAFK5H4XoU/r+PwvUoXI/+vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw+b/sUbgehev5vwAAAAAAAPi/FK5H4XoU9r+PwvUoXI/2vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw8b/sUbgehevxvwAAAAAAAPC/KVyPwvUo7L8fhetRuB7tvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"4XoUrkfh4r/Xo3A9CtfjvwAAAAAAAOC/UrgehetR2L8+CtejcD3avw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"CtejcD0Kt7+4HoXrUbi+vwAAAAAAAAAAuB6F61G4vj8K16NwPQq3Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"PgrXo3A92j9SuB6F61HYPwAAAAAAAOA/16NwPQrX4z/hehSuR+HiPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"H4XrUbge7T8pXI/C9SjsPwAAAAAAAPA/7FG4HoXr8T9xPQrXo3DxPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP9j8UrkfhehT2PwAAAAAAAPg/7FG4HoXr+T9xPQrXo3D5Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP/j8UrkfhehT+PwAAAAAAAABA9ihcj8L1AEC4HoXrUbgAQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}],\"ys\":[{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"mpmZmZmZub97FK5H4XqUP5qZmZmZmbk/exSuR+F6lD+amZmZmZm5vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]},\"selected\":{\"id\":\"5089\"},\"selection_policy\":{\"id\":\"5088\"}},\"id\":\"4960\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"4664\"},{\"id\":\"4665\"},{\"id\":\"4666\"},{\"id\":\"4667\"},{\"id\":\"4668\"},{\"id\":\"4669\"}]},\"id\":\"4671\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"4652\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"4802\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"4805\"},\"selection_policy\":{\"id\":\"4804\"}},\"id\":\"4678\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"5088\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#8073AC\"},\"line_width\":{\"value\":2},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"4962\",\"type\":\"MultiLine\"},{\"attributes\":{\"data_source\":{\"id\":\"4678\"},\"glyph\":{\"id\":\"4679\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"4680\"},\"selection_glyph\":null,\"view\":{\"id\":\"4682\"}},\"id\":\"4681\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"4665\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"text\":\"line\"},\"id\":\"4646\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"4664\",\"type\":\"PanTool\"},{\"attributes\":{\"overlay\":{\"id\":\"4670\"}},\"id\":\"4666\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"axis\":{\"id\":\"4656\"},\"ticker\":null},\"id\":\"4659\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"4667\",\"type\":\"SaveTool\"}],\"root_ids\":[\"4645\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"29ae1002-91f2-46e1-bab2-7708cd8af447\",\"root_ids\":[\"4645\"],\"roots\":{\"4645\":\"1cc5cedd-c75a-4239-a0d4-5bf41ba8c80e\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "4645"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p.multi_line([xpts+xx for xx in x], [ypts+yy for yy in y], color=\"#8073AC\", line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"b4533dbc-fd45-4f38-84c1-c4eaac68686c\" data-root-id=\"5282\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"f32fd85a-7d5b-4d4e-a129-207e86b5382b\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"5293\"}],\"center\":[{\"id\":\"5296\"},{\"id\":\"5300\"}],\"left\":[{\"id\":\"5297\"}],\"renderers\":[{\"id\":\"5318\"}],\"title\":{\"id\":\"5283\"},\"toolbar\":{\"id\":\"5308\"},\"x_range\":{\"id\":\"5285\"},\"x_scale\":{\"id\":\"5289\"},\"y_range\":{\"id\":\"5287\"},\"y_scale\":{\"id\":\"5291\"}},\"id\":\"5282\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"fill_color\":{\"value\":\"#FB9A99\"},\"line_color\":{\"value\":\"#FB9A99\"},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"5316\",\"type\":\"MultiPolygons\"},{\"attributes\":{},\"id\":\"5301\",\"type\":\"PanTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"5301\"},{\"id\":\"5302\"},{\"id\":\"5303\"},{\"id\":\"5304\"},{\"id\":\"5305\"},{\"id\":\"5306\"}]},\"id\":\"5308\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"5306\",\"type\":\"HelpTool\"},{\"attributes\":{\"axis\":{\"id\":\"5297\"},\"dimension\":1,\"ticker\":null},\"id\":\"5300\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"5291\",\"type\":\"LinearScale\"},{\"attributes\":{\"overlay\":{\"id\":\"5307\"}},\"id\":\"5303\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"5287\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"5452\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"5294\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"5451\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"formatter\":{\"id\":\"5447\"},\"ticker\":{\"id\":\"5298\"}},\"id\":\"5297\",\"type\":\"LinearAxis\"},{\"attributes\":{\"formatter\":{\"id\":\"5449\"},\"ticker\":{\"id\":\"5294\"}},\"id\":\"5293\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"5298\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"5289\",\"type\":\"LinearScale\"},{\"attributes\":{\"data\":{\"xs\":[[[{\"__ndarray__\":\"cT0K16NwAcDsUbgehesBwAAAAAAAAADAKVyPwvUo/L8fhetRuB79vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"uB6F61G4AMD2KFyPwvUAwAAAAAAAAADAFK5H4XoU/r+PwvUoXI/+vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"4XoUrkfh+r/Xo3A9Ctf7vwAAAAAAAPi/KVyPwvUo9L8fhetRuB71vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw+b/sUbgehev5vwAAAAAAAPi/FK5H4XoU9r+PwvUoXI/2vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"4XoUrkfh8r/Xo3A9CtfzvwAAAAAAAPC/UrgehetR6L8+CtejcD3qvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw8b/sUbgehevxvwAAAAAAAPC/KVyPwvUo7L8fhetRuB7tvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"wvUoXI/C5b+uR+F6FK7nvwAAAAAAAOC/pHA9Ctej0L97FK5H4XrUvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"4XoUrkfh4r/Xo3A9CtfjvwAAAAAAAOC/UrgehetR2L8+CtejcD3avw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"CtejcD0Kx7+4HoXrUbjOvwAAAAAAAAAAuB6F61G4zj8K16NwPQrHPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"CtejcD0Kt7+4HoXrUbi+vwAAAAAAAAAAuB6F61G4vj8K16NwPQq3Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"exSuR+F61D+kcD0K16PQPwAAAAAAAOA/rkfhehSu5z/C9Shcj8LlPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"PgrXo3A92j9SuB6F61HYPwAAAAAAAOA/16NwPQrX4z/hehSuR+HiPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"PgrXo3A96j9SuB6F61HoPwAAAAAAAPA/16NwPQrX8z/hehSuR+HyPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"H4XrUbge7T8pXI/C9SjsPwAAAAAAAPA/7FG4HoXr8T9xPQrXo3DxPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"H4XrUbge9T8pXI/C9Sj0PwAAAAAAAPg/16NwPQrX+z/hehSuR+H6Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP9j8UrkfhehT2PwAAAAAAAPg/7FG4HoXr+T9xPQrXo3D5Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"H4XrUbge/T8pXI/C9Sj8PwAAAAAAAABA7FG4HoXrAUBxPQrXo3ABQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP/j8UrkfhehT+PwAAAAAAAABA9ihcj8L1AEC4HoXrUbgAQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]]],\"ys\":[[[{\"__ndarray__\":\"mpmZmZmZDUA9CtejcD0QQDMzMzMzMxFAPQrXo3A9EECamZmZmZkNQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"MzMzMzMz/z97FK5H4XoCQGZmZmZmZgRAexSuR+F6AkAzMzMzMzP/Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"ZmZmZmZm5j/2KFyPwvXwP83MzMzMzPQ/9ihcj8L18D9mZmZmZmbmPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"oJmZmZmZqb/Xo3A9CtfTP5qZmZmZmeE/16NwPQrX0z+gmZmZmZmpvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"NDMzMzMz07+4HoXrUbiuPzQzMzMzM9M/uB6F61G4rj80MzMzMzPTvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"mpmZmZmZub97FK5H4XqUP5qZmZmZmbk/exSuR+F6lD+amZmZmZm5vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"oJmZmZmZqb/Xo3A9CtfTP5qZmZmZmeE/16NwPQrX0z+gmZmZmZmpvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"ZmZmZmZm5j/2KFyPwvXwP83MzMzMzPQ/9ihcj8L18D9mZmZmZmbmPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"MzMzMzMz/z97FK5H4XoCQGZmZmZmZgRAexSuR+F6AkAzMzMzMzP/Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"mpmZmZmZDUA9CtejcD0QQDMzMzMzMxFAPQrXo3A9EECamZmZmZkNQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]]]},\"selected\":{\"id\":\"5452\"},\"selection_policy\":{\"id\":\"5451\"}},\"id\":\"5315\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"5305\",\"type\":\"ResetTool\"},{\"attributes\":{\"axis\":{\"id\":\"5293\"},\"ticker\":null},\"id\":\"5296\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"5304\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"5447\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"5285\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"5302\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"source\":{\"id\":\"5315\"}},\"id\":\"5319\",\"type\":\"CDSView\"},{\"attributes\":{\"text\":\"multi_polygons\"},\"id\":\"5283\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"5449\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"5307\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"data_source\":{\"id\":\"5315\"},\"glyph\":{\"id\":\"5316\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"5317\"},\"selection_glyph\":null,\"view\":{\"id\":\"5319\"}},\"id\":\"5318\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#FB9A99\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#FB9A99\"},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"5317\",\"type\":\"MultiPolygons\"}],\"root_ids\":[\"5282\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"f32fd85a-7d5b-4d4e-a129-207e86b5382b\",\"root_ids\":[\"5282\"],\"roots\":{\"5282\":\"b4533dbc-fd45-4f38-84c1-c4eaac68686c\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "5282"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"multi_polygons\")\n",
    "p.multi_polygons([[[xpts*2+xx, xpts+xx]] for xx in x], [[[ypts*3+yy, ypts+yy]] for yy in y], color=\"#FB9A99\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"77e41a83-9084-476d-9c02-dc6500f068d2\" data-root-id=\"5607\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"9379c4b2-76a1-4408-b465-40f748687c90\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"5618\"}],\"center\":[{\"id\":\"5621\"},{\"id\":\"5625\"}],\"left\":[{\"id\":\"5622\"}],\"renderers\":[{\"id\":\"5643\"}],\"title\":{\"id\":\"5608\"},\"toolbar\":{\"id\":\"5633\"},\"x_range\":{\"id\":\"5610\"},\"x_scale\":{\"id\":\"5614\"},\"y_range\":{\"id\":\"5612\"},\"y_scale\":{\"id\":\"5616\"}},\"id\":\"5607\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"5630\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"5626\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"5780\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"5785\"},\"selection_policy\":{\"id\":\"5784\"}},\"id\":\"5640\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"5627\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"text\":\"oval\"},\"id\":\"5608\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"5612\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"5782\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"formatter\":{\"id\":\"5780\"},\"ticker\":{\"id\":\"5623\"}},\"id\":\"5622\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"5616\",\"type\":\"LinearScale\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"5642\",\"type\":\"Oval\"},{\"attributes\":{},\"id\":\"5619\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"5623\",\"type\":\"BasicTicker\"},{\"attributes\":{\"axis\":{\"id\":\"5622\"},\"dimension\":1,\"ticker\":null},\"id\":\"5625\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"5614\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"5629\",\"type\":\"SaveTool\"},{\"attributes\":{\"data_source\":{\"id\":\"5640\"},\"glyph\":{\"id\":\"5641\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"5642\"},\"selection_glyph\":null,\"view\":{\"id\":\"5644\"}},\"id\":\"5643\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"5631\",\"type\":\"HelpTool\"},{\"attributes\":{\"formatter\":{\"id\":\"5782\"},\"ticker\":{\"id\":\"5619\"}},\"id\":\"5618\",\"type\":\"LinearAxis\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"5632\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"overlay\":{\"id\":\"5632\"}},\"id\":\"5628\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"5784\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"5626\"},{\"id\":\"5627\"},{\"id\":\"5628\"},{\"id\":\"5629\"},{\"id\":\"5630\"},{\"id\":\"5631\"}]},\"id\":\"5633\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"5610\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"5785\",\"type\":\"Selection\"},{\"attributes\":{\"axis\":{\"id\":\"5618\"},\"ticker\":null},\"id\":\"5621\",\"type\":\"Grid\"},{\"attributes\":{\"source\":{\"id\":\"5640\"}},\"id\":\"5644\",\"type\":\"CDSView\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"5641\",\"type\":\"Oval\"}],\"root_ids\":[\"5607\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"9379c4b2-76a1-4408-b465-40f748687c90\",\"root_ids\":[\"5607\"],\"roots\":{\"5607\":\"77e41a83-9084-476d-9c02-dc6500f068d2\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "5607"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"oval\")\n",
    "p.oval(x, y, 15, 25, angle=-0.7, color=\"#1D91C0\", \n",
    "    width_units=\"screen\", height_units=\"screen\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"e41173d1-d4d9-4549-b855-9c44c47779d7\" data-root-id=\"5940\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"f10ba1a7-1ce9-4acd-9e76-58309373cbab\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"5951\"}],\"center\":[{\"id\":\"5954\"},{\"id\":\"5958\"}],\"left\":[{\"id\":\"5955\"}],\"renderers\":[{\"id\":\"5976\"}],\"title\":{\"id\":\"5941\"},\"toolbar\":{\"id\":\"5966\"},\"x_range\":{\"id\":\"5943\"},\"x_scale\":{\"id\":\"5947\"},\"y_range\":{\"id\":\"5945\"},\"y_scale\":{\"id\":\"5949\"}},\"id\":\"5940\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"axis\":{\"id\":\"5951\"},\"ticker\":null},\"id\":\"5954\",\"type\":\"Grid\"},{\"attributes\":{\"source\":{\"id\":\"5973\"}},\"id\":\"5977\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"5960\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"5945\",\"type\":\"DataRange1d\"},{\"attributes\":{\"axis\":{\"id\":\"5955\"},\"dimension\":1,\"ticker\":null},\"id\":\"5958\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"6126\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"5947\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"5949\",\"type\":\"LinearScale\"},{\"attributes\":{\"fill_color\":\"#A6CEE3\",\"line_color\":\"#A6CEE3\",\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"5974\",\"type\":\"Patch\"},{\"attributes\":{\"formatter\":{\"id\":\"6121\"},\"ticker\":{\"id\":\"5956\"}},\"id\":\"5955\",\"type\":\"LinearAxis\"},{\"attributes\":{\"data_source\":{\"id\":\"5973\"},\"glyph\":{\"id\":\"5974\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"5975\"},\"selection_glyph\":null,\"view\":{\"id\":\"5977\"}},\"id\":\"5976\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"5959\",\"type\":\"PanTool\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"6126\"},\"selection_policy\":{\"id\":\"6125\"}},\"id\":\"5973\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"5959\"},{\"id\":\"5960\"},{\"id\":\"5961\"},{\"id\":\"5962\"},{\"id\":\"5963\"},{\"id\":\"5964\"}]},\"id\":\"5966\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"5964\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"5952\",\"type\":\"BasicTicker\"},{\"attributes\":{\"text\":\"patch\"},\"id\":\"5941\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"6123\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"fill_alpha\":0.1,\"fill_color\":\"#A6CEE3\",\"line_alpha\":0.1,\"line_color\":\"#A6CEE3\",\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"5975\",\"type\":\"Patch\"},{\"attributes\":{},\"id\":\"6125\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"formatter\":{\"id\":\"6123\"},\"ticker\":{\"id\":\"5952\"}},\"id\":\"5951\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"5943\",\"type\":\"DataRange1d\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"5965\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"5963\",\"type\":\"ResetTool\"},{\"attributes\":{\"overlay\":{\"id\":\"5965\"}},\"id\":\"5961\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"5962\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"6121\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"5956\",\"type\":\"BasicTicker\"}],\"root_ids\":[\"5940\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"f10ba1a7-1ce9-4acd-9e76-58309373cbab\",\"root_ids\":[\"5940\"],\"roots\":{\"5940\":\"e41173d1-d4d9-4549-b855-9c44c47779d7\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "5940"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"patch\")\n",
    "p.patch(x, y, color=\"#A6CEE3\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"a8db59b5-4b5c-48c3-951e-59f7e44ec5ff\" data-root-id=\"6585\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"403fdcc8-e1d6-4d6b-af1c-e2b24f3f25d8\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"6596\"}],\"center\":[{\"id\":\"6599\"},{\"id\":\"6603\"}],\"left\":[{\"id\":\"6600\"}],\"renderers\":[{\"id\":\"6621\"}],\"title\":{\"id\":\"6586\"},\"toolbar\":{\"id\":\"6611\"},\"x_range\":{\"id\":\"6588\"},\"x_scale\":{\"id\":\"6592\"},\"y_range\":{\"id\":\"6590\"},\"y_scale\":{\"id\":\"6594\"}},\"id\":\"6585\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"data\":{\"xs\":[{\"__ndarray__\":\"uB6F61G4AMD2KFyPwvUAwAAAAAAAAADAFK5H4XoU/r+PwvUoXI/+vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw+b/sUbgehev5vwAAAAAAAPi/FK5H4XoU9r+PwvUoXI/2vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw8b/sUbgehevxvwAAAAAAAPC/KVyPwvUo7L8fhetRuB7tvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"4XoUrkfh4r/Xo3A9CtfjvwAAAAAAAOC/UrgehetR2L8+CtejcD3avw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"CtejcD0Kt7+4HoXrUbi+vwAAAAAAAAAAuB6F61G4vj8K16NwPQq3Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"PgrXo3A92j9SuB6F61HYPwAAAAAAAOA/16NwPQrX4z/hehSuR+HiPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"H4XrUbge7T8pXI/C9SjsPwAAAAAAAPA/7FG4HoXr8T9xPQrXo3DxPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP9j8UrkfhehT2PwAAAAAAAPg/7FG4HoXr+T9xPQrXo3D5Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP/j8UrkfhehT+PwAAAAAAAABA9ihcj8L1AEC4HoXrUbgAQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}],\"ys\":[{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"mpmZmZmZub97FK5H4XqUP5qZmZmZmbk/exSuR+F6lD+amZmZmZm5vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]},\"selected\":{\"id\":\"6785\"},\"selection_policy\":{\"id\":\"6784\"}},\"id\":\"6618\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"text\":\"patches\"},\"id\":\"6586\",\"type\":\"Title\"},{\"attributes\":{\"overlay\":{\"id\":\"6610\"}},\"id\":\"6606\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"data_source\":{\"id\":\"6618\"},\"glyph\":{\"id\":\"6619\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"6620\"},\"selection_glyph\":null,\"view\":{\"id\":\"6622\"}},\"id\":\"6621\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"6601\",\"type\":\"BasicTicker\"},{\"attributes\":{\"source\":{\"id\":\"6618\"}},\"id\":\"6622\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"6590\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"6609\",\"type\":\"HelpTool\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#FB9A99\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#FB9A99\"},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"6620\",\"type\":\"Patches\"},{\"attributes\":{},\"id\":\"6607\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"6785\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"6604\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"6588\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"6608\",\"type\":\"ResetTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"6604\"},{\"id\":\"6605\"},{\"id\":\"6606\"},{\"id\":\"6607\"},{\"id\":\"6608\"},{\"id\":\"6609\"}]},\"id\":\"6611\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"6597\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"6784\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"6780\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"6605\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"axis\":{\"id\":\"6600\"},\"dimension\":1,\"ticker\":null},\"id\":\"6603\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"6594\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"6782\"},\"ticker\":{\"id\":\"6597\"}},\"id\":\"6596\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"6592\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"6782\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"formatter\":{\"id\":\"6780\"},\"ticker\":{\"id\":\"6601\"}},\"id\":\"6600\",\"type\":\"LinearAxis\"},{\"attributes\":{\"fill_color\":{\"value\":\"#FB9A99\"},\"line_color\":{\"value\":\"#FB9A99\"},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"6619\",\"type\":\"Patches\"},{\"attributes\":{\"axis\":{\"id\":\"6596\"},\"ticker\":null},\"id\":\"6599\",\"type\":\"Grid\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"6610\",\"type\":\"BoxAnnotation\"}],\"root_ids\":[\"6585\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"403fdcc8-e1d6-4d6b-af1c-e2b24f3f25d8\",\"root_ids\":[\"6585\"],\"roots\":{\"6585\":\"a8db59b5-4b5c-48c3-951e-59f7e44ec5ff\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "6585"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"patches\")\n",
    "p.patches([xpts+xx for xx in x], [ypts+yy for yy in y], color=\"#FB9A99\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"e6763c7f-0e05-40db-b59a-4e0d3d9b9067\" data-root-id=\"6940\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"7749ba5b-f861-4b9d-8472-42d5414b8526\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"6951\"}],\"center\":[{\"id\":\"6954\"},{\"id\":\"6958\"}],\"left\":[{\"id\":\"6955\"}],\"renderers\":[{\"id\":\"6976\"}],\"title\":{\"id\":\"6941\"},\"toolbar\":{\"id\":\"6966\"},\"x_range\":{\"id\":\"6943\"},\"x_scale\":{\"id\":\"6947\"},\"y_range\":{\"id\":\"6945\"},\"y_scale\":{\"id\":\"6949\"}},\"id\":\"6940\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"7148\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"6956\",\"type\":\"BasicTicker\"},{\"attributes\":{\"data_source\":{\"id\":\"6973\"},\"glyph\":{\"id\":\"6974\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"6975\"},\"selection_glyph\":null,\"view\":{\"id\":\"6977\"}},\"id\":\"6976\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"bottom\":{\"field\":\"bottom\"},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#B3DE69\"},\"left\":{\"field\":\"left\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#B3DE69\"},\"right\":{\"field\":\"right\"},\"top\":{\"field\":\"top\"}},\"id\":\"6975\",\"type\":\"Quad\"},{\"attributes\":{},\"id\":\"6943\",\"type\":\"DataRange1d\"},{\"attributes\":{\"bottom\":{\"field\":\"bottom\"},\"fill_color\":{\"value\":\"#B3DE69\"},\"left\":{\"field\":\"left\"},\"line_color\":{\"value\":\"#B3DE69\"},\"right\":{\"field\":\"right\"},\"top\":{\"field\":\"top\"}},\"id\":\"6974\",\"type\":\"Quad\"},{\"attributes\":{\"formatter\":{\"id\":\"7143\"},\"ticker\":{\"id\":\"6956\"}},\"id\":\"6955\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"6949\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"7145\"},\"ticker\":{\"id\":\"6952\"}},\"id\":\"6951\",\"type\":\"LinearAxis\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"6959\"},{\"id\":\"6960\"},{\"id\":\"6961\"},{\"id\":\"6962\"},{\"id\":\"6963\"},{\"id\":\"6964\"}]},\"id\":\"6966\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"6952\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"6964\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"6963\",\"type\":\"ResetTool\"},{\"attributes\":{\"data\":{\"bottom\":{\"__ndarray__\":\"MzMzMzMzD0AzMzMzMzMBQM3MzMzMzOw/MzMzMzMzwz+amZmZmZm5vzMzMzMzM8M/zczMzMzM7D8zMzMzMzMBQDMzMzMzMw9A\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"left\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"right\":{\"__ndarray__\":\"zczMzMzMAMCamZmZmZn5v5qZmZmZmfG/MzMzMzMz47+amZmZmZm5v5qZmZmZmdk/zczMzMzM7D9mZmZmZmb2P2ZmZmZmZv4/\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"top\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"7148\"},\"selection_policy\":{\"id\":\"7147\"}},\"id\":\"6973\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"6945\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"6962\",\"type\":\"SaveTool\"},{\"attributes\":{\"overlay\":{\"id\":\"6965\"}},\"id\":\"6961\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"6959\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"7147\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"6960\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"7143\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"6947\",\"type\":\"LinearScale\"},{\"attributes\":{\"axis\":{\"id\":\"6955\"},\"dimension\":1,\"ticker\":null},\"id\":\"6958\",\"type\":\"Grid\"},{\"attributes\":{\"text\":\"quad\"},\"id\":\"6941\",\"type\":\"Title\"},{\"attributes\":{\"axis\":{\"id\":\"6951\"},\"ticker\":null},\"id\":\"6954\",\"type\":\"Grid\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"6965\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"7145\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"source\":{\"id\":\"6973\"}},\"id\":\"6977\",\"type\":\"CDSView\"}],\"root_ids\":[\"6940\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"7749ba5b-f861-4b9d-8472-42d5414b8526\",\"root_ids\":[\"6940\"],\"roots\":{\"6940\":\"e6763c7f-0e05-40db-b59a-4e0d3d9b9067\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "6940"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"quad\")\n",
    "p.quad(x, x-0.1, y, y-0.1, color=\"#B3DE69\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"5762925f-4a3a-4252-8a16-101de90eaf71\" data-root-id=\"7303\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"a2831ad8-8412-4fc2-861e-3d6ec78b34f9\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"7314\"}],\"center\":[{\"id\":\"7317\"},{\"id\":\"7321\"}],\"left\":[{\"id\":\"7318\"}],\"renderers\":[{\"id\":\"7339\"}],\"title\":{\"id\":\"7304\"},\"toolbar\":{\"id\":\"7329\"},\"x_range\":{\"id\":\"7306\"},\"x_scale\":{\"id\":\"7310\"},\"y_range\":{\"id\":\"7308\"},\"y_scale\":{\"id\":\"7312\"}},\"id\":\"7303\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"7323\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"7306\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"7327\",\"type\":\"HelpTool\"},{\"attributes\":{\"overlay\":{\"id\":\"7328\"}},\"id\":\"7324\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"text\":\"quadratic\"},\"id\":\"7304\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"7325\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"7326\",\"type\":\"ResetTool\"},{\"attributes\":{\"data\":{\"cx\":{\"__ndarray__\":\"ZmZmZmZm/r9mZmZmZmb2v83MzMzMzOy/mpmZmZmZ2b+amZmZmZm5PzMzMzMzM+M/mpmZmZmZ8T+amZmZmZn5P83MzMzMzABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"cy\":{\"__ndarray__\":\"ZmZmZmZmEEDNzMzMzMwCQJqZmZmZmfE/ZmZmZmZm1j+amZmZmZm5P2ZmZmZmZtY/mpmZmZmZ8T/NzMzMzMwCQGZmZmZmZhBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x0\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x1\":{\"__ndarray__\":\"zczMzMzM/L/NzMzMzMz0v5qZmZmZmem/MzMzMzMz07+amZmZmZnJP2ZmZmZmZuY/MzMzMzMz8z8zMzMzMzP7P5qZmZmZmQFA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y0\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y1\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"7519\"},\"selection_policy\":{\"id\":\"7518\"}},\"id\":\"7336\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"7308\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"7312\",\"type\":\"LinearScale\"},{\"attributes\":{\"source\":{\"id\":\"7336\"}},\"id\":\"7340\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"7319\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"7322\",\"type\":\"PanTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"7322\"},{\"id\":\"7323\"},{\"id\":\"7324\"},{\"id\":\"7325\"},{\"id\":\"7326\"},{\"id\":\"7327\"}]},\"id\":\"7329\",\"type\":\"Toolbar\"},{\"attributes\":{\"formatter\":{\"id\":\"7514\"},\"ticker\":{\"id\":\"7319\"}},\"id\":\"7318\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"7518\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"7328\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"7514\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"axis\":{\"id\":\"7314\"},\"ticker\":null},\"id\":\"7317\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"7516\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"7310\",\"type\":\"LinearScale\"},{\"attributes\":{\"data_source\":{\"id\":\"7336\"},\"glyph\":{\"id\":\"7337\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"7338\"},\"selection_glyph\":null,\"view\":{\"id\":\"7340\"}},\"id\":\"7339\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"axis\":{\"id\":\"7318\"},\"dimension\":1,\"ticker\":null},\"id\":\"7321\",\"type\":\"Grid\"},{\"attributes\":{\"cx\":{\"field\":\"cx\"},\"cy\":{\"field\":\"cy\"},\"line_color\":{\"value\":\"#4DAF4A\"},\"line_width\":{\"value\":3},\"x0\":{\"field\":\"x0\"},\"x1\":{\"field\":\"x1\"},\"y0\":{\"field\":\"y0\"},\"y1\":{\"field\":\"y1\"}},\"id\":\"7337\",\"type\":\"Quadratic\"},{\"attributes\":{\"formatter\":{\"id\":\"7516\"},\"ticker\":{\"id\":\"7315\"}},\"id\":\"7314\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"7315\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"7519\",\"type\":\"Selection\"},{\"attributes\":{\"cx\":{\"field\":\"cx\"},\"cy\":{\"field\":\"cy\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#4DAF4A\"},\"line_width\":{\"value\":3},\"x0\":{\"field\":\"x0\"},\"x1\":{\"field\":\"x1\"},\"y0\":{\"field\":\"y0\"},\"y1\":{\"field\":\"y1\"}},\"id\":\"7338\",\"type\":\"Quadratic\"}],\"root_ids\":[\"7303\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"a2831ad8-8412-4fc2-861e-3d6ec78b34f9\",\"root_ids\":[\"7303\"],\"roots\":{\"7303\":\"5762925f-4a3a-4252-8a16-101de90eaf71\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "7303"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"quadratic\")\n",
    "p.quadratic(x, y, x+0.2, y, x+0.1, y+0.1, color=\"#4DAF4A\", line_width=3)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"330f5d3b-f27c-4b9d-996f-9b983688d3d5\" data-root-id=\"7674\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"153edc42-f3c2-4aca-b9fd-b16c84f9ab0a\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"7685\"}],\"center\":[{\"id\":\"7688\"},{\"id\":\"7692\"}],\"left\":[{\"id\":\"7689\"}],\"renderers\":[{\"id\":\"7710\"}],\"title\":{\"id\":\"7675\"},\"toolbar\":{\"id\":\"7700\"},\"x_range\":{\"id\":\"7677\"},\"x_scale\":{\"id\":\"7681\"},\"y_range\":{\"id\":\"7679\"},\"y_scale\":{\"id\":\"7683\"}},\"id\":\"7674\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"7699\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"7686\",\"type\":\"BasicTicker\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"length\":{\"units\":\"data\",\"value\":45},\"line_color\":{\"value\":\"#FB8072\"},\"line_width\":{\"value\":2},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"7708\",\"type\":\"Ray\"},{\"attributes\":{},\"id\":\"7683\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"7690\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"7898\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"7693\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"7679\",\"type\":\"DataRange1d\"},{\"attributes\":{\"axis\":{\"id\":\"7689\"},\"dimension\":1,\"ticker\":null},\"id\":\"7692\",\"type\":\"Grid\"},{\"attributes\":{\"formatter\":{\"id\":\"7895\"},\"ticker\":{\"id\":\"7686\"}},\"id\":\"7685\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"7895\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"7898\"},\"selection_policy\":{\"id\":\"7897\"}},\"id\":\"7707\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"7707\"},\"glyph\":{\"id\":\"7708\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"7709\"},\"selection_glyph\":null,\"view\":{\"id\":\"7711\"}},\"id\":\"7710\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"text\":\"ray\"},\"id\":\"7675\",\"type\":\"Title\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"length\":{\"units\":\"data\",\"value\":45},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#FB8072\"},\"line_width\":{\"value\":2},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"7709\",\"type\":\"Ray\"},{\"attributes\":{},\"id\":\"7697\",\"type\":\"ResetTool\"},{\"attributes\":{\"source\":{\"id\":\"7707\"}},\"id\":\"7711\",\"type\":\"CDSView\"},{\"attributes\":{\"axis\":{\"id\":\"7685\"},\"ticker\":null},\"id\":\"7688\",\"type\":\"Grid\"},{\"attributes\":{\"overlay\":{\"id\":\"7699\"}},\"id\":\"7695\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"7897\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"7694\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"7693\"},{\"id\":\"7694\"},{\"id\":\"7695\"},{\"id\":\"7696\"},{\"id\":\"7697\"},{\"id\":\"7698\"}]},\"id\":\"7700\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"7681\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"7893\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"7696\",\"type\":\"SaveTool\"},{\"attributes\":{\"formatter\":{\"id\":\"7893\"},\"ticker\":{\"id\":\"7690\"}},\"id\":\"7689\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"7677\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"7698\",\"type\":\"HelpTool\"}],\"root_ids\":[\"7674\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"153edc42-f3c2-4aca-b9fd-b16c84f9ab0a\",\"root_ids\":[\"7674\"],\"roots\":{\"7674\":\"330f5d3b-f27c-4b9d-996f-9b983688d3d5\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "7674"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"ray\")\n",
    "p.ray(x, y, 45, -0.7, color=\"#FB8072\", line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"58e0bc2f-2ed3-4161-b1f3-f56c49cfa1ac\" data-root-id=\"8086\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"ae372d40-3c93-4b92-8a33-1b6f39b77ac5\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"8097\"}],\"center\":[{\"id\":\"8100\"},{\"id\":\"8104\"}],\"left\":[{\"id\":\"8101\"}],\"renderers\":[{\"id\":\"8122\"}],\"title\":{\"id\":\"8087\"},\"toolbar\":{\"id\":\"8112\"},\"x_range\":{\"id\":\"8089\"},\"x_scale\":{\"id\":\"8093\"},\"y_range\":{\"id\":\"8091\"},\"y_scale\":{\"id\":\"8095\"}},\"id\":\"8086\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"8106\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"formatter\":{\"id\":\"8315\"},\"ticker\":{\"id\":\"8098\"}},\"id\":\"8097\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"8110\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"8317\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"8095\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"8105\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"8102\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"8093\",\"type\":\"LinearScale\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"8105\"},{\"id\":\"8106\"},{\"id\":\"8107\"},{\"id\":\"8108\"},{\"id\":\"8109\"},{\"id\":\"8110\"}]},\"id\":\"8112\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"8315\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"8089\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"8318\"},\"selection_policy\":{\"id\":\"8317\"}},\"id\":\"8119\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"8109\",\"type\":\"ResetTool\"},{\"attributes\":{\"source\":{\"id\":\"8119\"}},\"id\":\"8123\",\"type\":\"CDSView\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"fill_color\":{\"value\":\"#8888ee\"},\"inner_radius\":{\"units\":\"screen\",\"value\":10},\"line_color\":{\"value\":\"#8888ee\"},\"outer_radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"8120\",\"type\":\"AnnularWedge\"},{\"attributes\":{},\"id\":\"8108\",\"type\":\"SaveTool\"},{\"attributes\":{\"text\":\"annular_wedge\"},\"id\":\"8087\",\"type\":\"Title\"},{\"attributes\":{\"formatter\":{\"id\":\"8313\"},\"ticker\":{\"id\":\"8102\"}},\"id\":\"8101\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"8091\",\"type\":\"DataRange1d\"},{\"attributes\":{\"axis\":{\"id\":\"8101\"},\"dimension\":1,\"ticker\":null},\"id\":\"8104\",\"type\":\"Grid\"},{\"attributes\":{\"data_source\":{\"id\":\"8119\"},\"glyph\":{\"id\":\"8120\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"8121\"},\"selection_glyph\":null,\"view\":{\"id\":\"8123\"}},\"id\":\"8122\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"8318\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"8313\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"axis\":{\"id\":\"8097\"},\"ticker\":null},\"id\":\"8100\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"8098\",\"type\":\"BasicTicker\"},{\"attributes\":{\"overlay\":{\"id\":\"8111\"}},\"id\":\"8107\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"8111\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#8888ee\"},\"inner_radius\":{\"units\":\"screen\",\"value\":10},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#8888ee\"},\"outer_radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"8121\",\"type\":\"AnnularWedge\"}],\"root_ids\":[\"8086\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"ae372d40-3c93-4b92-8a33-1b6f39b77ac5\",\"root_ids\":[\"8086\"],\"roots\":{\"8086\":\"58e0bc2f-2ed3-4161-b1f3-f56c49cfa1ac\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "8086"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"rect\")\n",
    "import numpy as np\n",
    "from bokeh.layouts import gridplot\n",
    "# 数据\n",
    "N = 9\n",
    "x = np.linspace(-2, 2, N)\n",
    "y = x**2\n",
    "sizes = np.linspace(10, 20, N)\n",
    "xpts = np.array([-.09, -.12, .0, .12, .09])\n",
    "ypts = np.array([-.1, .02, .1, .02, -.1])\n",
    "# 画布列表\n",
    "figures = []\n",
    "p = figure(title=\"annular_wedge\")\n",
    "p.annular_wedge(x, y, 10, 20, 0.6, 4.1, color=\"#8888ee\",\n",
    "    inner_radius_units=\"screen\", outer_radius_units=\"screen\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"0912d139-141b-498d-9f06-a7db38aea15c\" data-root-id=\"12783\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"5d9f501b-4c68-42c3-b56a-900443c344b6\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"12794\"}],\"center\":[{\"id\":\"12797\"},{\"id\":\"12801\"}],\"left\":[{\"id\":\"12798\"}],\"renderers\":[{\"id\":\"12819\"}],\"title\":{\"id\":\"12784\"},\"toolbar\":{\"id\":\"12809\"},\"x_range\":{\"id\":\"12786\"},\"x_scale\":{\"id\":\"12790\"},\"y_range\":{\"id\":\"12788\"},\"y_scale\":{\"id\":\"12792\"}},\"id\":\"12783\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"source\":{\"id\":\"12816\"}},\"id\":\"12820\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"12790\",\"type\":\"LinearScale\"},{\"attributes\":{\"text\":\"annular_wedge\"},\"id\":\"12784\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"13100\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"12803\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"12795\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"12788\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"12805\",\"type\":\"SaveTool\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"13103\"},\"selection_policy\":{\"id\":\"13102\"}},\"id\":\"12816\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"overlay\":{\"id\":\"12808\"}},\"id\":\"12804\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"fill_color\":{\"value\":\"#8888ee\"},\"inner_radius\":{\"units\":\"screen\",\"value\":10},\"line_color\":{\"value\":\"#8888ee\"},\"outer_radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"12817\",\"type\":\"AnnularWedge\"},{\"attributes\":{},\"id\":\"12802\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"12792\",\"type\":\"LinearScale\"},{\"attributes\":{\"axis\":{\"id\":\"12798\"},\"dimension\":1,\"ticker\":null},\"id\":\"12801\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"13102\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"formatter\":{\"id\":\"13100\"},\"ticker\":{\"id\":\"12795\"}},\"id\":\"12794\",\"type\":\"LinearAxis\"},{\"attributes\":{\"axis\":{\"id\":\"12794\"},\"ticker\":null},\"id\":\"12797\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"13098\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"formatter\":{\"id\":\"13098\"},\"ticker\":{\"id\":\"12799\"}},\"id\":\"12798\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"13103\",\"type\":\"Selection\"},{\"attributes\":{\"data_source\":{\"id\":\"12816\"},\"glyph\":{\"id\":\"12817\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"12818\"},\"selection_glyph\":null,\"view\":{\"id\":\"12820\"}},\"id\":\"12819\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"12808\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#8888ee\"},\"inner_radius\":{\"units\":\"screen\",\"value\":10},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#8888ee\"},\"outer_radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"12818\",\"type\":\"AnnularWedge\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"12802\"},{\"id\":\"12803\"},{\"id\":\"12804\"},{\"id\":\"12805\"},{\"id\":\"12806\"},{\"id\":\"12807\"}]},\"id\":\"12809\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"12799\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"12806\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"12807\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"12786\",\"type\":\"DataRange1d\"}],\"root_ids\":[\"12783\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"5d9f501b-4c68-42c3-b56a-900443c344b6\",\"root_ids\":[\"12783\"],\"roots\":{\"12783\":\"0912d139-141b-498d-9f06-a7db38aea15c\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "12783"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"annular_wedge\")\n",
    "p.annular_wedge(x, y, 10, 20, 0.6, 4.1, color=\"#8888ee\",\n",
    "    inner_radius_units=\"screen\", outer_radius_units=\"screen\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"e2374ea8-b315-4a21-a36e-5f693fd0f09b\" data-root-id=\"8868\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"f2621af5-d4d1-4c38-b0af-b79d8a7f4698\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"8879\"}],\"center\":[{\"id\":\"8882\"},{\"id\":\"8886\"}],\"left\":[{\"id\":\"8883\"}],\"renderers\":[{\"id\":\"8904\"}],\"title\":{\"id\":\"8869\"},\"toolbar\":{\"id\":\"8894\"},\"x_range\":{\"id\":\"8871\"},\"x_scale\":{\"id\":\"8875\"},\"y_range\":{\"id\":\"8873\"},\"y_scale\":{\"id\":\"8877\"}},\"id\":\"8868\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"9115\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"8891\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"9113\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"text\":\"arc\"},\"id\":\"8869\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"9111\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"8893\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"8871\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data_source\":{\"id\":\"8901\"},\"glyph\":{\"id\":\"8902\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"8903\"},\"selection_glyph\":null,\"view\":{\"id\":\"8905\"}},\"id\":\"8904\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"8892\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"8880\",\"type\":\"BasicTicker\"},{\"attributes\":{\"overlay\":{\"id\":\"8893\"}},\"id\":\"8889\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"8887\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"8873\",\"type\":\"DataRange1d\"},{\"attributes\":{\"formatter\":{\"id\":\"9113\"},\"ticker\":{\"id\":\"8880\"}},\"id\":\"8879\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"9116\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"8877\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"8875\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"8890\",\"type\":\"SaveTool\"},{\"attributes\":{\"axis\":{\"id\":\"8879\"},\"ticker\":null},\"id\":\"8882\",\"type\":\"Grid\"},{\"attributes\":{\"formatter\":{\"id\":\"9111\"},\"ticker\":{\"id\":\"8884\"}},\"id\":\"8883\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"8884\",\"type\":\"BasicTicker\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#BEAED4\"},\"line_width\":{\"value\":3},\"radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"8903\",\"type\":\"Arc\"},{\"attributes\":{\"axis\":{\"id\":\"8883\"},\"dimension\":1,\"ticker\":null},\"id\":\"8886\",\"type\":\"Grid\"},{\"attributes\":{\"source\":{\"id\":\"8901\"}},\"id\":\"8905\",\"type\":\"CDSView\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"8887\"},{\"id\":\"8888\"},{\"id\":\"8889\"},{\"id\":\"8890\"},{\"id\":\"8891\"},{\"id\":\"8892\"}]},\"id\":\"8894\",\"type\":\"Toolbar\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"9116\"},\"selection_policy\":{\"id\":\"9115\"}},\"id\":\"8901\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"8888\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"end_angle\":{\"units\":\"rad\",\"value\":4.1},\"line_color\":{\"value\":\"#BEAED4\"},\"line_width\":{\"value\":3},\"radius\":{\"units\":\"screen\",\"value\":20},\"start_angle\":{\"units\":\"rad\",\"value\":0.6},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"8902\",\"type\":\"Arc\"}],\"root_ids\":[\"8868\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"f2621af5-d4d1-4c38-b0af-b79d8a7f4698\",\"root_ids\":[\"8868\"],\"roots\":{\"8868\":\"e2374ea8-b315-4a21-a36e-5f693fd0f09b\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "8868"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"arc\")\n",
    "p.arc(x, y, 20, 0.6, 4.1,\n",
    "    radius_units=\"screen\", color=\"#BEAED4\", line_width=3)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"e818297d-d3d3-4de9-9b69-22dc3fa4d61f\" data-root-id=\"13741\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"98576c7a-aa58-4e36-bfea-e6d6427dad4e\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"13752\"}],\"center\":[{\"id\":\"13755\"},{\"id\":\"13759\"}],\"left\":[{\"id\":\"13756\"}],\"renderers\":[{\"id\":\"13777\"}],\"title\":{\"id\":\"13742\"},\"toolbar\":{\"id\":\"13767\"},\"x_range\":{\"id\":\"13744\"},\"x_scale\":{\"id\":\"13748\"},\"y_range\":{\"id\":\"13746\"},\"y_scale\":{\"id\":\"13750\"}},\"id\":\"13741\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"13744\",\"type\":\"DataRange1d\"},{\"attributes\":{\"axis\":{\"id\":\"13752\"},\"ticker\":null},\"id\":\"13755\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"13748\",\"type\":\"LinearScale\"},{\"attributes\":{\"source\":{\"id\":\"13774\"}},\"id\":\"13778\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"13746\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"13765\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"13760\",\"type\":\"PanTool\"},{\"attributes\":{\"text\":\"bezier\"},\"id\":\"13742\",\"type\":\"Title\"},{\"attributes\":{\"data_source\":{\"id\":\"13774\"},\"glyph\":{\"id\":\"13775\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"13776\"},\"selection_glyph\":null,\"view\":{\"id\":\"13778\"}},\"id\":\"13777\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"13763\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"14074\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"13757\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"13764\",\"type\":\"ResetTool\"},{\"attributes\":{\"formatter\":{\"id\":\"14072\"},\"ticker\":{\"id\":\"13757\"}},\"id\":\"13756\",\"type\":\"LinearAxis\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"13760\"},{\"id\":\"13761\"},{\"id\":\"13762\"},{\"id\":\"13763\"},{\"id\":\"13764\"},{\"id\":\"13765\"}]},\"id\":\"13767\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"14077\",\"type\":\"Selection\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"13766\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"cx0\":{\"field\":\"cx0\"},\"cx1\":{\"field\":\"cx1\"},\"cy0\":{\"field\":\"cy0\"},\"cy1\":{\"field\":\"cy1\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#D95F02\"},\"line_width\":{\"value\":2},\"x0\":{\"field\":\"x0\"},\"x1\":{\"field\":\"x1\"},\"y0\":{\"field\":\"y0\"},\"y1\":{\"field\":\"y1\"}},\"id\":\"13776\",\"type\":\"Bezier\"},{\"attributes\":{},\"id\":\"13753\",\"type\":\"BasicTicker\"},{\"attributes\":{\"cx0\":{\"field\":\"cx0\"},\"cx1\":{\"field\":\"cx1\"},\"cy0\":{\"field\":\"cy0\"},\"cy1\":{\"field\":\"cy1\"},\"line_color\":{\"value\":\"#D95F02\"},\"line_width\":{\"value\":2},\"x0\":{\"field\":\"x0\"},\"x1\":{\"field\":\"x1\"},\"y0\":{\"field\":\"y0\"},\"y1\":{\"field\":\"y1\"}},\"id\":\"13775\",\"type\":\"Bezier\"},{\"attributes\":{\"axis\":{\"id\":\"13756\"},\"dimension\":1,\"ticker\":null},\"id\":\"13759\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"13750\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"14076\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"data\":{\"cx0\":{\"__ndarray__\":\"ZmZmZmZm/r9mZmZmZmb2v83MzMzMzOy/mpmZmZmZ2b+amZmZmZm5PzMzMzMzM+M/mpmZmZmZ8T+amZmZmZn5P83MzMzMzABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"cx1\":{\"__ndarray__\":\"zczMzMzMAMCamZmZmZn5v5qZmZmZmfG/MzMzMzMz47+amZmZmZm5v5qZmZmZmdk/zczMzMzM7D9mZmZmZmb2P2ZmZmZmZv4/\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"cy0\":{\"__ndarray__\":\"ZmZmZmZmEEDNzMzMzMwCQJqZmZmZmfE/ZmZmZmZm1j+amZmZmZm5P2ZmZmZmZtY/mpmZmZmZ8T/NzMzMzMwCQGZmZmZmZhBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"cy1\":{\"__ndarray__\":\"MzMzMzMzD0AzMzMzMzMBQM3MzMzMzOw/MzMzMzMzwz+amZmZmZm5vzMzMzMzM8M/zczMzMzM7D8zMzMzMzMBQDMzMzMzMw9A\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x0\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x1\":{\"__ndarray__\":\"zczMzMzM/L/NzMzMzMz0v5qZmZmZmem/MzMzMzMz07+amZmZmZnJP2ZmZmZmZuY/MzMzMzMz8z8zMzMzMzP7P5qZmZmZmQFA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y0\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y1\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"14077\"},\"selection_policy\":{\"id\":\"14076\"}},\"id\":\"13774\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"13761\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"formatter\":{\"id\":\"14074\"},\"ticker\":{\"id\":\"13753\"}},\"id\":\"13752\",\"type\":\"LinearAxis\"},{\"attributes\":{\"overlay\":{\"id\":\"13766\"}},\"id\":\"13762\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"14072\",\"type\":\"BasicTickFormatter\"}],\"root_ids\":[\"13741\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"98576c7a-aa58-4e36-bfea-e6d6427dad4e\",\"root_ids\":[\"13741\"],\"roots\":{\"13741\":\"e818297d-d3d3-4de9-9b69-22dc3fa4d61f\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "13741"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"bezier\")\n",
    "p.bezier(x, y, x+0.2, y, x+0.1, y+0.1, x-0.1, y-0.1,\n",
    "    color=\"#D95F02\", line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"0b72f191-79ef-49e0-9206-168f10c65b3d\" data-root-id=\"14232\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"acf7d4db-7f73-4142-a923-de2005cd4f26\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"14243\"}],\"center\":[{\"id\":\"14246\"},{\"id\":\"14250\"}],\"left\":[{\"id\":\"14247\"}],\"renderers\":[{\"id\":\"14268\"}],\"title\":{\"id\":\"14233\"},\"toolbar\":{\"id\":\"14258\"},\"x_range\":{\"id\":\"14235\"},\"x_scale\":{\"id\":\"14239\"},\"y_range\":{\"id\":\"14237\"},\"y_scale\":{\"id\":\"14241\"}},\"id\":\"14232\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"14239\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"14575\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"data_source\":{\"id\":\"14265\"},\"glyph\":{\"id\":\"14266\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"14267\"},\"selection_glyph\":null,\"view\":{\"id\":\"14269\"}},\"id\":\"14268\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"14241\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"14251\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"14255\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"14248\",\"type\":\"BasicTicker\"},{\"attributes\":{\"line_color\":{\"value\":\"#8073AC\"},\"line_width\":{\"value\":2},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"14266\",\"type\":\"MultiLine\"},{\"attributes\":{},\"id\":\"14256\",\"type\":\"HelpTool\"},{\"attributes\":{\"formatter\":{\"id\":\"14573\"},\"ticker\":{\"id\":\"14244\"}},\"id\":\"14243\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"14237\",\"type\":\"DataRange1d\"},{\"attributes\":{\"text\":\"multi_line\"},\"id\":\"14233\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"14244\",\"type\":\"BasicTicker\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"14251\"},{\"id\":\"14252\"},{\"id\":\"14253\"},{\"id\":\"14254\"},{\"id\":\"14255\"},{\"id\":\"14256\"}]},\"id\":\"14258\",\"type\":\"Toolbar\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#8073AC\"},\"line_width\":{\"value\":2},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"14267\",\"type\":\"MultiLine\"},{\"attributes\":{},\"id\":\"14235\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"14254\",\"type\":\"SaveTool\"},{\"attributes\":{\"source\":{\"id\":\"14265\"}},\"id\":\"14269\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"14576\",\"type\":\"Selection\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"14257\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"axis\":{\"id\":\"14247\"},\"dimension\":1,\"ticker\":null},\"id\":\"14250\",\"type\":\"Grid\"},{\"attributes\":{\"axis\":{\"id\":\"14243\"},\"ticker\":null},\"id\":\"14246\",\"type\":\"Grid\"},{\"attributes\":{\"overlay\":{\"id\":\"14257\"}},\"id\":\"14253\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"14252\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"14571\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data\":{\"xs\":[{\"__ndarray__\":\"uB6F61G4AMD2KFyPwvUAwAAAAAAAAADAFK5H4XoU/r+PwvUoXI/+vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw+b/sUbgehev5vwAAAAAAAPi/FK5H4XoU9r+PwvUoXI/2vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw8b/sUbgehevxvwAAAAAAAPC/KVyPwvUo7L8fhetRuB7tvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"4XoUrkfh4r/Xo3A9CtfjvwAAAAAAAOC/UrgehetR2L8+CtejcD3avw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"CtejcD0Kt7+4HoXrUbi+vwAAAAAAAAAAuB6F61G4vj8K16NwPQq3Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"PgrXo3A92j9SuB6F61HYPwAAAAAAAOA/16NwPQrX4z/hehSuR+HiPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"H4XrUbge7T8pXI/C9SjsPwAAAAAAAPA/7FG4HoXr8T9xPQrXo3DxPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP9j8UrkfhehT2PwAAAAAAAPg/7FG4HoXr+T9xPQrXo3D5Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP/j8UrkfhehT+PwAAAAAAAABA9ihcj8L1AEC4HoXrUbgAQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}],\"ys\":[{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"mpmZmZmZub97FK5H4XqUP5qZmZmZmbk/exSuR+F6lD+amZmZmZm5vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]},\"selected\":{\"id\":\"14576\"},\"selection_policy\":{\"id\":\"14575\"}},\"id\":\"14265\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"14573\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"formatter\":{\"id\":\"14571\"},\"ticker\":{\"id\":\"14248\"}},\"id\":\"14247\",\"type\":\"LinearAxis\"}],\"root_ids\":[\"14232\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"acf7d4db-7f73-4142-a923-de2005cd4f26\",\"root_ids\":[\"14232\"],\"roots\":{\"14232\":\"0b72f191-79ef-49e0-9206-168f10c65b3d\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "14232"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"multi_line\")\n",
    "p.multi_line([xpts+xx for xx in x], [ypts+yy for yy in y], color=\"#8073AC\", line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"ac5dce63-1d43-48e1-9efc-a999822484d7\" data-root-id=\"10101\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"77b9a092-6f12-42da-96b3-3d6388d2462d\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"10112\"}],\"center\":[{\"id\":\"10115\"},{\"id\":\"10119\"}],\"left\":[{\"id\":\"10116\"}],\"renderers\":[{\"id\":\"10137\"}],\"title\":{\"id\":\"10102\"},\"toolbar\":{\"id\":\"10127\"},\"x_range\":{\"id\":\"10104\"},\"x_scale\":{\"id\":\"10108\"},\"y_range\":{\"id\":\"10106\"},\"y_scale\":{\"id\":\"10110\"}},\"id\":\"10101\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"formatter\":{\"id\":\"10370\"},\"ticker\":{\"id\":\"10113\"}},\"id\":\"10112\",\"type\":\"LinearAxis\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"10373\"},\"selection_policy\":{\"id\":\"10372\"}},\"id\":\"10134\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"10370\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"10136\",\"type\":\"Ellipse\"},{\"attributes\":{\"text\":\"ellipse\"},\"id\":\"10102\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"10113\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"10108\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"10120\",\"type\":\"PanTool\"},{\"attributes\":{\"axis\":{\"id\":\"10112\"},\"ticker\":null},\"id\":\"10115\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"10372\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"formatter\":{\"id\":\"10368\"},\"ticker\":{\"id\":\"10117\"}},\"id\":\"10116\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"10110\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"10117\",\"type\":\"BasicTicker\"},{\"attributes\":{\"axis\":{\"id\":\"10116\"},\"dimension\":1,\"ticker\":null},\"id\":\"10119\",\"type\":\"Grid\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"10126\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"10135\",\"type\":\"Ellipse\"},{\"attributes\":{},\"id\":\"10121\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"data_source\":{\"id\":\"10134\"},\"glyph\":{\"id\":\"10135\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"10136\"},\"selection_glyph\":null,\"view\":{\"id\":\"10138\"}},\"id\":\"10137\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"10125\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"10104\",\"type\":\"DataRange1d\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"10120\"},{\"id\":\"10121\"},{\"id\":\"10122\"},{\"id\":\"10123\"},{\"id\":\"10124\"},{\"id\":\"10125\"}]},\"id\":\"10127\",\"type\":\"Toolbar\"},{\"attributes\":{\"overlay\":{\"id\":\"10126\"}},\"id\":\"10122\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"10123\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"10124\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"10373\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"10106\",\"type\":\"DataRange1d\"},{\"attributes\":{\"source\":{\"id\":\"10134\"}},\"id\":\"10138\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"10368\",\"type\":\"BasicTickFormatter\"}],\"root_ids\":[\"10101\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"77b9a092-6f12-42da-96b3-3d6388d2462d\",\"root_ids\":[\"10101\"],\"roots\":{\"10101\":\"ac5dce63-1d43-48e1-9efc-a999822484d7\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "10101"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"ellipse\")\n",
    "p.ellipse(x, y, 15, 25, angle=-0.7, color=\"#1D91C0\",\n",
    "    width_units=\"screen\", height_units=\"screen\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"dd419795-b83e-45e3-bb61-1fef62e5c63f\" data-root-id=\"10528\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"542860bd-ce6e-44c7-96b9-56a646fcd082\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"10539\"}],\"center\":[{\"id\":\"10542\"},{\"id\":\"10546\"}],\"left\":[{\"id\":\"10543\"}],\"renderers\":[{\"id\":\"10564\"}],\"title\":{\"id\":\"10529\"},\"toolbar\":{\"id\":\"10554\"},\"x_range\":{\"id\":\"10531\"},\"x_scale\":{\"id\":\"10535\"},\"y_range\":{\"id\":\"10533\"},\"y_scale\":{\"id\":\"10537\"}},\"id\":\"10528\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"10531\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"10551\",\"type\":\"ResetTool\"},{\"attributes\":{\"line_alpha\":0.1,\"line_color\":\"#F46D43\",\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"10563\",\"type\":\"Line\"},{\"attributes\":{\"overlay\":{\"id\":\"10553\"}},\"id\":\"10549\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"10552\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"10533\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"10537\",\"type\":\"LinearScale\"},{\"attributes\":{\"axis\":{\"id\":\"10543\"},\"dimension\":1,\"ticker\":null},\"id\":\"10546\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"10548\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"axis\":{\"id\":\"10539\"},\"ticker\":null},\"id\":\"10542\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"10547\",\"type\":\"PanTool\"},{\"attributes\":{\"formatter\":{\"id\":\"10803\"},\"ticker\":{\"id\":\"10544\"}},\"id\":\"10543\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"10540\",\"type\":\"BasicTicker\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"10547\"},{\"id\":\"10548\"},{\"id\":\"10549\"},{\"id\":\"10550\"},{\"id\":\"10551\"},{\"id\":\"10552\"}]},\"id\":\"10554\",\"type\":\"Toolbar\"},{\"attributes\":{\"text\":\"line\"},\"id\":\"10529\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"10544\",\"type\":\"BasicTicker\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"10808\"},\"selection_policy\":{\"id\":\"10807\"}},\"id\":\"10561\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"10550\",\"type\":\"SaveTool\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"10553\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"line_color\":\"#F46D43\",\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"10562\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"10807\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"10805\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data_source\":{\"id\":\"10561\"},\"glyph\":{\"id\":\"10562\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"10563\"},\"selection_glyph\":null,\"view\":{\"id\":\"10565\"}},\"id\":\"10564\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"10808\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"10535\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"10805\"},\"ticker\":{\"id\":\"10540\"}},\"id\":\"10539\",\"type\":\"LinearAxis\"},{\"attributes\":{\"source\":{\"id\":\"10561\"}},\"id\":\"10565\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"10803\",\"type\":\"BasicTickFormatter\"}],\"root_ids\":[\"10528\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"542860bd-ce6e-44c7-96b9-56a646fcd082\",\"root_ids\":[\"10528\"],\"roots\":{\"10528\":\"dd419795-b83e-45e3-bb61-1fef62e5c63f\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "10528"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"line\")\n",
    "p.line(x, y, color=\"#F46D43\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"9794e74a-56d6-49c3-8974-3035aabd3114\" data-root-id=\"14731\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"c3b729c7-e4e5-428d-900b-ba5c17e3ddae\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"14742\"}],\"center\":[{\"id\":\"14745\"},{\"id\":\"14749\"}],\"left\":[{\"id\":\"14746\"}],\"renderers\":[{\"id\":\"14767\"}],\"title\":{\"id\":\"14732\"},\"toolbar\":{\"id\":\"14757\"},\"x_range\":{\"id\":\"14734\"},\"x_scale\":{\"id\":\"14738\"},\"y_range\":{\"id\":\"14736\"},\"y_scale\":{\"id\":\"14740\"}},\"id\":\"14731\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"15082\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"15078\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"14750\"},{\"id\":\"14751\"},{\"id\":\"14752\"},{\"id\":\"14753\"},{\"id\":\"14754\"},{\"id\":\"14755\"}]},\"id\":\"14757\",\"type\":\"Toolbar\"},{\"attributes\":{\"data\":{\"xs\":[[[{\"__ndarray__\":\"cT0K16NwAcDsUbgehesBwAAAAAAAAADAKVyPwvUo/L8fhetRuB79vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"uB6F61G4AMD2KFyPwvUAwAAAAAAAAADAFK5H4XoU/r+PwvUoXI/+vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"4XoUrkfh+r/Xo3A9Ctf7vwAAAAAAAPi/KVyPwvUo9L8fhetRuB71vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw+b/sUbgehev5vwAAAAAAAPi/FK5H4XoU9r+PwvUoXI/2vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"4XoUrkfh8r/Xo3A9CtfzvwAAAAAAAPC/UrgehetR6L8+CtejcD3qvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"cT0K16Nw8b/sUbgehevxvwAAAAAAAPC/KVyPwvUo7L8fhetRuB7tvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"wvUoXI/C5b+uR+F6FK7nvwAAAAAAAOC/pHA9Ctej0L97FK5H4XrUvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"4XoUrkfh4r/Xo3A9CtfjvwAAAAAAAOC/UrgehetR2L8+CtejcD3avw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"CtejcD0Kx7+4HoXrUbjOvwAAAAAAAAAAuB6F61G4zj8K16NwPQrHPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"CtejcD0Kt7+4HoXrUbi+vwAAAAAAAAAAuB6F61G4vj8K16NwPQq3Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"exSuR+F61D+kcD0K16PQPwAAAAAAAOA/rkfhehSu5z/C9Shcj8LlPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"PgrXo3A92j9SuB6F61HYPwAAAAAAAOA/16NwPQrX4z/hehSuR+HiPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"PgrXo3A96j9SuB6F61HoPwAAAAAAAPA/16NwPQrX8z/hehSuR+HyPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"H4XrUbge7T8pXI/C9SjsPwAAAAAAAPA/7FG4HoXr8T9xPQrXo3DxPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"H4XrUbge9T8pXI/C9Sj0PwAAAAAAAPg/16NwPQrX+z/hehSuR+H6Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP9j8UrkfhehT2PwAAAAAAAPg/7FG4HoXr+T9xPQrXo3D5Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"H4XrUbge/T8pXI/C9Sj8PwAAAAAAAABA7FG4HoXrAUBxPQrXo3ABQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"j8L1KFyP/j8UrkfhehT+PwAAAAAAAABA9ihcj8L1AEC4HoXrUbgAQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]]],\"ys\":[[[{\"__ndarray__\":\"mpmZmZmZDUA9CtejcD0QQDMzMzMzMxFAPQrXo3A9EECamZmZmZkNQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"MzMzMzMz/z97FK5H4XoCQGZmZmZmZgRAexSuR+F6AkAzMzMzMzP/Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"ZmZmZmZm5j/2KFyPwvXwP83MzMzMzPQ/9ihcj8L18D9mZmZmZmbmPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"oJmZmZmZqb/Xo3A9CtfTP5qZmZmZmeE/16NwPQrX0z+gmZmZmZmpvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"NDMzMzMz07+4HoXrUbiuPzQzMzMzM9M/uB6F61G4rj80MzMzMzPTvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"mpmZmZmZub97FK5H4XqUP5qZmZmZmbk/exSuR+F6lD+amZmZmZm5vw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"oJmZmZmZqb/Xo3A9CtfTP5qZmZmZmeE/16NwPQrX0z+gmZmZmZmpvw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzwz9I4XoUrkfRP2ZmZmZmZtY/SOF6FK5H0T8zMzMzMzPDPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"ZmZmZmZm5j/2KFyPwvXwP83MzMzMzPQ/9ihcj8L18D9mZmZmZmbmPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"zczMzMzM7D9SuB6F61HwP5qZmZmZmfE/UrgehetR8D/NzMzMzMzsPw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"MzMzMzMz/z97FK5H4XoCQGZmZmZmZgRAexSuR+F6AkAzMzMzMzP/Pw==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzAUApXI/C9SgCQM3MzMzMzAJAKVyPwvUoAkAzMzMzMzMBQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]],[[{\"__ndarray__\":\"mpmZmZmZDUA9CtejcD0QQDMzMzMzMxFAPQrXo3A9EECamZmZmZkNQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]},{\"__ndarray__\":\"MzMzMzMzD0AUrkfhehQQQGZmZmZmZhBAFK5H4XoUEEAzMzMzMzMPQA==\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[5]}]]]},\"selected\":{\"id\":\"15083\"},\"selection_policy\":{\"id\":\"15082\"}},\"id\":\"14764\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"14753\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"14743\",\"type\":\"BasicTicker\"},{\"attributes\":{\"text\":\"multi_polygons\"},\"id\":\"14732\",\"type\":\"Title\"},{\"attributes\":{\"source\":{\"id\":\"14764\"}},\"id\":\"14768\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"14734\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"14750\",\"type\":\"PanTool\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#FB9A99\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#FB9A99\"},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"14766\",\"type\":\"MultiPolygons\"},{\"attributes\":{},\"id\":\"14736\",\"type\":\"DataRange1d\"},{\"attributes\":{\"formatter\":{\"id\":\"15080\"},\"ticker\":{\"id\":\"14743\"}},\"id\":\"14742\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"15083\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"14740\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"15078\"},\"ticker\":{\"id\":\"14747\"}},\"id\":\"14746\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"14738\",\"type\":\"LinearScale\"},{\"attributes\":{\"axis\":{\"id\":\"14742\"},\"ticker\":null},\"id\":\"14745\",\"type\":\"Grid\"},{\"attributes\":{\"data_source\":{\"id\":\"14764\"},\"glyph\":{\"id\":\"14765\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"14766\"},\"selection_glyph\":null,\"view\":{\"id\":\"14768\"}},\"id\":\"14767\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_color\":{\"value\":\"#FB9A99\"},\"line_color\":{\"value\":\"#FB9A99\"},\"xs\":{\"field\":\"xs\"},\"ys\":{\"field\":\"ys\"}},\"id\":\"14765\",\"type\":\"MultiPolygons\"},{\"attributes\":{},\"id\":\"14747\",\"type\":\"BasicTicker\"},{\"attributes\":{\"axis\":{\"id\":\"14746\"},\"dimension\":1,\"ticker\":null},\"id\":\"14749\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"15080\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"14751\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"14755\",\"type\":\"HelpTool\"},{\"attributes\":{\"overlay\":{\"id\":\"14756\"}},\"id\":\"14752\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"14756\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"14754\",\"type\":\"ResetTool\"}],\"root_ids\":[\"14731\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"c3b729c7-e4e5-428d-900b-ba5c17e3ddae\",\"root_ids\":[\"14731\"],\"roots\":{\"14731\":\"9794e74a-56d6-49c3-8974-3035aabd3114\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "14731"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"multi_polygons\")\n",
    "p.multi_polygons([[[xpts*2+xx, xpts+xx]] for xx in x], [[[ypts*3+yy, ypts+yy]] for yy in y], color=\"#FB9A99\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"6291e52e-b081-477b-8ca0-0f62d7be2427\" data-root-id=\"15752\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"232622b1-1dd9-47eb-b82e-777a3738f695\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"15763\"}],\"center\":[{\"id\":\"15766\"},{\"id\":\"15770\"}],\"left\":[{\"id\":\"15767\"}],\"renderers\":[{\"id\":\"15788\"}],\"title\":{\"id\":\"15753\"},\"toolbar\":{\"id\":\"15778\"},\"x_range\":{\"id\":\"15755\"},\"x_scale\":{\"id\":\"15759\"},\"y_range\":{\"id\":\"15757\"},\"y_scale\":{\"id\":\"15761\"}},\"id\":\"15752\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"16109\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"16114\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"15772\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"16114\"},\"selection_policy\":{\"id\":\"16113\"}},\"id\":\"15785\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"15786\",\"type\":\"Oval\"},{\"attributes\":{\"data_source\":{\"id\":\"15785\"},\"glyph\":{\"id\":\"15786\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"15787\"},\"selection_glyph\":null,\"view\":{\"id\":\"15789\"}},\"id\":\"15788\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"axis\":{\"id\":\"15763\"},\"ticker\":null},\"id\":\"15766\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"16111\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"15787\",\"type\":\"Oval\"},{\"attributes\":{\"formatter\":{\"id\":\"16109\"},\"ticker\":{\"id\":\"15768\"}},\"id\":\"15767\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"15774\",\"type\":\"SaveTool\"},{\"attributes\":{\"axis\":{\"id\":\"15767\"},\"dimension\":1,\"ticker\":null},\"id\":\"15770\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"15757\",\"type\":\"DataRange1d\"},{\"attributes\":{\"overlay\":{\"id\":\"15777\"}},\"id\":\"15773\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"15771\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"15761\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"16111\"},\"ticker\":{\"id\":\"15764\"}},\"id\":\"15763\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"16113\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"source\":{\"id\":\"15785\"}},\"id\":\"15789\",\"type\":\"CDSView\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"15771\"},{\"id\":\"15772\"},{\"id\":\"15773\"},{\"id\":\"15774\"},{\"id\":\"15775\"},{\"id\":\"15776\"}]},\"id\":\"15778\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"15768\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"15755\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"15776\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"15775\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"15759\",\"type\":\"LinearScale\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"15777\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"15764\",\"type\":\"BasicTicker\"},{\"attributes\":{\"text\":\"oval\"},\"id\":\"15753\",\"type\":\"Title\"}],\"root_ids\":[\"15752\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"232622b1-1dd9-47eb-b82e-777a3738f695\",\"root_ids\":[\"15752\"],\"roots\":{\"15752\":\"6291e52e-b081-477b-8ca0-0f62d7be2427\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "15752"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"oval\")\n",
    "p.oval(x, y, 15, 25, angle=-0.7, color=\"#1D91C0\", \n",
    "    width_units=\"screen\", height_units=\"screen\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"b04b737d-eb64-452f-a991-4c05ac104b10\" data-root-id=\"11857\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"050b12ef-1b98-4080-a027-f1d252bbdf56\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"11868\"}],\"center\":[{\"id\":\"11871\"},{\"id\":\"11875\"}],\"left\":[{\"id\":\"11872\"}],\"renderers\":[{\"id\":\"11893\"}],\"title\":{\"id\":\"11858\"},\"toolbar\":{\"id\":\"11883\"},\"x_range\":{\"id\":\"11860\"},\"x_scale\":{\"id\":\"11864\"},\"y_range\":{\"id\":\"11862\"},\"y_scale\":{\"id\":\"11866\"}},\"id\":\"11857\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"11892\",\"type\":\"Oval\"},{\"attributes\":{},\"id\":\"11881\",\"type\":\"HelpTool\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"11882\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"11880\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"11876\",\"type\":\"PanTool\"},{\"attributes\":{\"axis\":{\"id\":\"11872\"},\"dimension\":1,\"ticker\":null},\"id\":\"11875\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"12158\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"11866\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"11879\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"11877\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"angle\":{\"units\":\"rad\",\"value\":-0.7},\"fill_color\":{\"value\":\"#1D91C0\"},\"height\":{\"units\":\"screen\",\"value\":25},\"line_color\":{\"value\":\"#1D91C0\"},\"width\":{\"units\":\"screen\",\"value\":15},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"11891\",\"type\":\"Oval\"},{\"attributes\":{\"source\":{\"id\":\"11890\"}},\"id\":\"11894\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"11864\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"12156\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"11876\"},{\"id\":\"11877\"},{\"id\":\"11878\"},{\"id\":\"11879\"},{\"id\":\"11880\"},{\"id\":\"11881\"}]},\"id\":\"11883\",\"type\":\"Toolbar\"},{\"attributes\":{\"text\":\"oval\"},\"id\":\"11858\",\"type\":\"Title\"},{\"attributes\":{\"overlay\":{\"id\":\"11882\"}},\"id\":\"11878\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"data\":{\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"12161\"},\"selection_policy\":{\"id\":\"12160\"}},\"id\":\"11890\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"11873\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"12160\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"11860\",\"type\":\"DataRange1d\"},{\"attributes\":{\"formatter\":{\"id\":\"12158\"},\"ticker\":{\"id\":\"11869\"}},\"id\":\"11868\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"11869\",\"type\":\"BasicTicker\"},{\"attributes\":{\"data_source\":{\"id\":\"11890\"},\"glyph\":{\"id\":\"11891\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"11892\"},\"selection_glyph\":null,\"view\":{\"id\":\"11894\"}},\"id\":\"11893\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"axis\":{\"id\":\"11868\"},\"ticker\":null},\"id\":\"11871\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"12161\",\"type\":\"Selection\"},{\"attributes\":{\"formatter\":{\"id\":\"12156\"},\"ticker\":{\"id\":\"11873\"}},\"id\":\"11872\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"11862\",\"type\":\"DataRange1d\"}],\"root_ids\":[\"11857\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"050b12ef-1b98-4080-a027-f1d252bbdf56\",\"root_ids\":[\"11857\"],\"roots\":{\"11857\":\"b04b737d-eb64-452f-a991-4c05ac104b10\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "11857"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"oval\")\n",
    "p.oval(x, y, 15, 25, angle=-0.7, color=\"#1D91C0\", \n",
    "    width_units=\"screen\", height_units=\"screen\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"9f22d39a-b2d0-443a-911a-c4f46884e93b\" data-root-id=\"16269\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"852a4319-faae-421a-b35a-6d96505a7690\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"16280\"}],\"center\":[{\"id\":\"16283\"},{\"id\":\"16287\"}],\"left\":[{\"id\":\"16284\"}],\"renderers\":[{\"id\":\"16305\"}],\"title\":{\"id\":\"16270\"},\"toolbar\":{\"id\":\"16295\"},\"x_range\":{\"id\":\"16272\"},\"x_scale\":{\"id\":\"16276\"},\"y_range\":{\"id\":\"16274\"},\"y_scale\":{\"id\":\"16278\"}},\"id\":\"16269\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"line_color\":{\"value\":\"#F4A582\"},\"line_width\":{\"value\":3},\"x0\":{\"field\":\"x0\"},\"x1\":{\"field\":\"x1\"},\"y0\":{\"field\":\"y0\"},\"y1\":{\"field\":\"y1\"}},\"id\":\"16303\",\"type\":\"Segment\"},{\"attributes\":{},\"id\":\"16288\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"16272\",\"type\":\"DataRange1d\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"16294\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"source\":{\"id\":\"16302\"}},\"id\":\"16306\",\"type\":\"CDSView\"},{\"attributes\":{\"text\":\"segment\"},\"id\":\"16270\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"16636\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"16278\",\"type\":\"LinearScale\"},{\"attributes\":{\"data_source\":{\"id\":\"16302\"},\"glyph\":{\"id\":\"16303\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"16304\"},\"selection_glyph\":null,\"view\":{\"id\":\"16306\"}},\"id\":\"16305\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"16276\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"16285\",\"type\":\"BasicTicker\"},{\"attributes\":{\"overlay\":{\"id\":\"16294\"}},\"id\":\"16290\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"16291\",\"type\":\"SaveTool\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#F4A582\"},\"line_width\":{\"value\":3},\"x0\":{\"field\":\"x0\"},\"x1\":{\"field\":\"x1\"},\"y0\":{\"field\":\"y0\"},\"y1\":{\"field\":\"y1\"}},\"id\":\"16304\",\"type\":\"Segment\"},{\"attributes\":{\"formatter\":{\"id\":\"16636\"},\"ticker\":{\"id\":\"16281\"}},\"id\":\"16280\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"16639\",\"type\":\"Selection\"},{\"attributes\":{\"axis\":{\"id\":\"16284\"},\"dimension\":1,\"ticker\":null},\"id\":\"16287\",\"type\":\"Grid\"},{\"attributes\":{\"formatter\":{\"id\":\"16634\"},\"ticker\":{\"id\":\"16285\"}},\"id\":\"16284\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"16293\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"16292\",\"type\":\"ResetTool\"},{\"attributes\":{\"data\":{\"x0\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x1\":{\"__ndarray__\":\"zczMzMzMAMCamZmZmZn5v5qZmZmZmfG/MzMzMzMz47+amZmZmZm5v5qZmZmZmdk/zczMzMzM7D9mZmZmZmb2P2ZmZmZmZv4/\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y0\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y1\":{\"__ndarray__\":\"MzMzMzMzD0AzMzMzMzMBQM3MzMzMzOw/MzMzMzMzwz+amZmZmZm5vzMzMzMzM8M/zczMzMzM7D8zMzMzMzMBQDMzMzMzMw9A\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"16639\"},\"selection_policy\":{\"id\":\"16638\"}},\"id\":\"16302\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"16288\"},{\"id\":\"16289\"},{\"id\":\"16290\"},{\"id\":\"16291\"},{\"id\":\"16292\"},{\"id\":\"16293\"}]},\"id\":\"16295\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"16289\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"16634\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"16638\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"16281\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"16274\",\"type\":\"DataRange1d\"},{\"attributes\":{\"axis\":{\"id\":\"16280\"},\"ticker\":null},\"id\":\"16283\",\"type\":\"Grid\"}],\"root_ids\":[\"16269\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"852a4319-faae-421a-b35a-6d96505a7690\",\"root_ids\":[\"16269\"],\"roots\":{\"16269\":\"9f22d39a-b2d0-443a-911a-c4f46884e93b\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "16269"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"segment\")\n",
    "p.segment(x, y, x-0.1, y-0.1, color=\"#F4A582\", line_width=3)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"d67ea760-c861-4836-9f0b-3dbbb9a87ceb\" data-root-id=\"16794\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"82741212-8ace-4fca-a319-5b42d05d246c\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"16805\"}],\"center\":[{\"id\":\"16808\"},{\"id\":\"16812\"}],\"left\":[{\"id\":\"16809\"}],\"renderers\":[{\"id\":\"16830\"}],\"title\":{\"id\":\"16795\"},\"toolbar\":{\"id\":\"16820\"},\"x_range\":{\"id\":\"16797\"},\"x_scale\":{\"id\":\"16801\"},\"y_range\":{\"id\":\"16799\"},\"y_scale\":{\"id\":\"16803\"}},\"id\":\"16794\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"16814\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"16797\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"16799\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"17167\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"16818\",\"type\":\"HelpTool\"},{\"attributes\":{\"source\":{\"id\":\"16827\"}},\"id\":\"16831\",\"type\":\"CDSView\"},{\"attributes\":{\"data\":{\"size\":{\"__ndarray__\":\"AAAAAAAAJEAAAAAAAIAmQAAAAAAAAClAAAAAAACAK0AAAAAAAAAuQAAAAAAAQDBAAAAAAACAMUAAAAAAAMAyQAAAAAAAADRA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"17172\"},\"selection_policy\":{\"id\":\"17171\"}},\"id\":\"16827\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"16803\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"16801\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"16816\",\"type\":\"SaveTool\"},{\"attributes\":{\"formatter\":{\"id\":\"17167\"},\"ticker\":{\"id\":\"16810\"}},\"id\":\"16809\",\"type\":\"LinearAxis\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#E6550D\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#E6550D\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"cross\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"16829\",\"type\":\"Scatter\"},{\"attributes\":{},\"id\":\"16806\",\"type\":\"BasicTicker\"},{\"attributes\":{\"data_source\":{\"id\":\"16827\"},\"glyph\":{\"id\":\"16828\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"16829\"},\"selection_glyph\":null,\"view\":{\"id\":\"16831\"}},\"id\":\"16830\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"overlay\":{\"id\":\"16819\"}},\"id\":\"16815\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"axis\":{\"id\":\"16805\"},\"ticker\":null},\"id\":\"16808\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"16813\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"17169\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"fill_color\":{\"value\":\"#E6550D\"},\"line_color\":{\"value\":\"#E6550D\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"cross\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"16828\",\"type\":\"Scatter\"},{\"attributes\":{\"text\":\"cross\"},\"id\":\"16795\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"17172\",\"type\":\"Selection\"},{\"attributes\":{\"axis\":{\"id\":\"16809\"},\"dimension\":1,\"ticker\":null},\"id\":\"16812\",\"type\":\"Grid\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"16819\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"formatter\":{\"id\":\"17169\"},\"ticker\":{\"id\":\"16806\"}},\"id\":\"16805\",\"type\":\"LinearAxis\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"16813\"},{\"id\":\"16814\"},{\"id\":\"16815\"},{\"id\":\"16816\"},{\"id\":\"16817\"},{\"id\":\"16818\"}]},\"id\":\"16820\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"16810\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"17171\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"16817\",\"type\":\"ResetTool\"}],\"root_ids\":[\"16794\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"82741212-8ace-4fca-a319-5b42d05d246c\",\"root_ids\":[\"16794\"],\"roots\":{\"16794\":\"d67ea760-c861-4836-9f0b-3dbbb9a87ceb\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "16794"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"cross\")\n",
    "p.scatter(x, y, marker=\"cross\", size=sizes, color=\"#E6550D\", line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"45a7ee57-33d9-4522-ad7a-9b69115f11ad\" data-root-id=\"17327\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"4859acf4-e00e-42af-9590-b8a57c4e92d7\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"17338\"}],\"center\":[{\"id\":\"17341\"},{\"id\":\"17345\"}],\"left\":[{\"id\":\"17342\"}],\"renderers\":[{\"id\":\"17363\"}],\"title\":{\"id\":\"17328\"},\"toolbar\":{\"id\":\"17353\"},\"x_range\":{\"id\":\"17330\"},\"x_scale\":{\"id\":\"17334\"},\"y_range\":{\"id\":\"17332\"},\"y_scale\":{\"id\":\"17336\"}},\"id\":\"17327\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"text\":\"diamond\"},\"id\":\"17328\",\"type\":\"Title\"},{\"attributes\":{\"fill_color\":{\"value\":\"#1C9099\"},\"line_color\":{\"value\":\"#1C9099\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"diamond\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"17361\",\"type\":\"Scatter\"},{\"attributes\":{\"overlay\":{\"id\":\"17352\"}},\"id\":\"17348\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"data\":{\"size\":{\"__ndarray__\":\"AAAAAAAAJEAAAAAAAIAmQAAAAAAAAClAAAAAAACAK0AAAAAAAAAuQAAAAAAAQDBAAAAAAACAMUAAAAAAAMAyQAAAAAAAADRA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"17713\"},\"selection_policy\":{\"id\":\"17712\"}},\"id\":\"17360\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"17712\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"17339\",\"type\":\"BasicTicker\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"17352\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"17330\",\"type\":\"DataRange1d\"},{\"attributes\":{\"axis\":{\"id\":\"17338\"},\"ticker\":null},\"id\":\"17341\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"17343\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"17346\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"17332\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"17350\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"17708\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"source\":{\"id\":\"17360\"}},\"id\":\"17364\",\"type\":\"CDSView\"},{\"attributes\":{\"axis\":{\"id\":\"17342\"},\"dimension\":1,\"ticker\":null},\"id\":\"17345\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"17334\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"17710\"},\"ticker\":{\"id\":\"17339\"}},\"id\":\"17338\",\"type\":\"LinearAxis\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1C9099\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1C9099\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"diamond\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"17362\",\"type\":\"Scatter\"},{\"attributes\":{},\"id\":\"17347\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"17713\",\"type\":\"Selection\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"17346\"},{\"id\":\"17347\"},{\"id\":\"17348\"},{\"id\":\"17349\"},{\"id\":\"17350\"},{\"id\":\"17351\"}]},\"id\":\"17353\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"17336\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"17349\",\"type\":\"SaveTool\"},{\"attributes\":{\"formatter\":{\"id\":\"17708\"},\"ticker\":{\"id\":\"17343\"}},\"id\":\"17342\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"17351\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"17710\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data_source\":{\"id\":\"17360\"},\"glyph\":{\"id\":\"17361\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"17362\"},\"selection_glyph\":null,\"view\":{\"id\":\"17364\"}},\"id\":\"17363\",\"type\":\"GlyphRenderer\"}],\"root_ids\":[\"17327\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"4859acf4-e00e-42af-9590-b8a57c4e92d7\",\"root_ids\":[\"17327\"],\"roots\":{\"17327\":\"45a7ee57-33d9-4522-ad7a-9b69115f11ad\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "17327"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"diamond\")\n",
    "p.scatter(x, y, marker=\"diamond\", size=sizes, color=\"#1C9099\", line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"dc46446c-6de4-41f7-8cff-5279ffba71e9\" data-root-id=\"17868\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"6a9334da-06d7-4ac0-9720-ab10d10b3e7f\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"17879\"}],\"center\":[{\"id\":\"17882\"},{\"id\":\"17886\"}],\"left\":[{\"id\":\"17883\"}],\"renderers\":[{\"id\":\"17904\"}],\"title\":{\"id\":\"17869\"},\"toolbar\":{\"id\":\"17894\"},\"x_range\":{\"id\":\"17871\"},\"x_scale\":{\"id\":\"17875\"},\"y_range\":{\"id\":\"17873\"},\"y_scale\":{\"id\":\"17877\"}},\"id\":\"17868\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"17884\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"18259\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"17875\",\"type\":\"LinearScale\"},{\"attributes\":{\"data_source\":{\"id\":\"17901\"},\"glyph\":{\"id\":\"17902\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"17903\"},\"selection_glyph\":null,\"view\":{\"id\":\"17905\"}},\"id\":\"17904\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"17893\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"17888\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#DE2D26\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#DE2D26\"},\"marker\":{\"value\":\"inverted_triangle\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"17903\",\"type\":\"Scatter\"},{\"attributes\":{\"formatter\":{\"id\":\"18257\"},\"ticker\":{\"id\":\"17884\"}},\"id\":\"17883\",\"type\":\"LinearAxis\"},{\"attributes\":{\"axis\":{\"id\":\"17883\"},\"dimension\":1,\"ticker\":null},\"id\":\"17886\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"17880\",\"type\":\"BasicTicker\"},{\"attributes\":{\"source\":{\"id\":\"17901\"}},\"id\":\"17905\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"17873\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"18261\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"17890\",\"type\":\"SaveTool\"},{\"attributes\":{\"fill_color\":{\"value\":\"#DE2D26\"},\"line_color\":{\"value\":\"#DE2D26\"},\"marker\":{\"value\":\"inverted_triangle\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"17902\",\"type\":\"Scatter\"},{\"attributes\":{\"text\":\"inverted_triangle\"},\"id\":\"17869\",\"type\":\"Title\"},{\"attributes\":{\"data\":{\"size\":{\"__ndarray__\":\"AAAAAAAAJEAAAAAAAIAmQAAAAAAAAClAAAAAAACAK0AAAAAAAAAuQAAAAAAAQDBAAAAAAACAMUAAAAAAAMAyQAAAAAAAADRA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"18262\"},\"selection_policy\":{\"id\":\"18261\"}},\"id\":\"17901\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"17887\"},{\"id\":\"17888\"},{\"id\":\"17889\"},{\"id\":\"17890\"},{\"id\":\"17891\"},{\"id\":\"17892\"}]},\"id\":\"17894\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"17877\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"18257\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"17871\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"18262\",\"type\":\"Selection\"},{\"attributes\":{\"formatter\":{\"id\":\"18259\"},\"ticker\":{\"id\":\"17880\"}},\"id\":\"17879\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"17887\",\"type\":\"PanTool\"},{\"attributes\":{\"overlay\":{\"id\":\"17893\"}},\"id\":\"17889\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"17892\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"17891\",\"type\":\"ResetTool\"},{\"attributes\":{\"axis\":{\"id\":\"17879\"},\"ticker\":null},\"id\":\"17882\",\"type\":\"Grid\"}],\"root_ids\":[\"17868\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"6a9334da-06d7-4ac0-9720-ab10d10b3e7f\",\"root_ids\":[\"17868\"],\"roots\":{\"17868\":\"dc46446c-6de4-41f7-8cff-5279ffba71e9\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "17868"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"inverted_triangle\")\n",
    "p.scatter(x, y, marker=\"inverted_triangle\", size=sizes, color=\"#DE2D26\")\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"42d71922-85d8-43b3-9ba1-25b4088cbc8a\" data-root-id=\"18417\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"35b768fa-f130-4e3a-8bcd-e21004e3b5a6\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"18428\"}],\"center\":[{\"id\":\"18431\"},{\"id\":\"18435\"}],\"left\":[{\"id\":\"18432\"}],\"renderers\":[{\"id\":\"18453\"}],\"title\":{\"id\":\"18418\"},\"toolbar\":{\"id\":\"18443\"},\"x_range\":{\"id\":\"18420\"},\"x_scale\":{\"id\":\"18424\"},\"y_range\":{\"id\":\"18422\"},\"y_scale\":{\"id\":\"18426\"}},\"id\":\"18417\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"18422\",\"type\":\"DataRange1d\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"18436\"},{\"id\":\"18437\"},{\"id\":\"18438\"},{\"id\":\"18439\"},{\"id\":\"18440\"},{\"id\":\"18441\"}]},\"id\":\"18443\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"18424\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"18436\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"18816\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"axis\":{\"id\":\"18428\"},\"ticker\":null},\"id\":\"18431\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"18426\",\"type\":\"LinearScale\"},{\"attributes\":{\"text\":\"square_x\"},\"id\":\"18418\",\"type\":\"Title\"},{\"attributes\":{\"axis\":{\"id\":\"18432\"},\"dimension\":1,\"ticker\":null},\"id\":\"18435\",\"type\":\"Grid\"},{\"attributes\":{\"fill_color\":{\"value\":null},\"line_color\":{\"value\":\"#FDAE6B\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"square_x\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"18451\",\"type\":\"Scatter\"},{\"attributes\":{},\"id\":\"18437\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"formatter\":{\"id\":\"18816\"},\"ticker\":{\"id\":\"18429\"}},\"id\":\"18428\",\"type\":\"LinearAxis\"},{\"attributes\":{\"data_source\":{\"id\":\"18450\"},\"glyph\":{\"id\":\"18451\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"18452\"},\"selection_glyph\":null,\"view\":{\"id\":\"18454\"}},\"id\":\"18453\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"18433\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"18420\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data\":{\"size\":{\"__ndarray__\":\"AAAAAAAAJEAAAAAAAIAmQAAAAAAAAClAAAAAAACAK0AAAAAAAAAuQAAAAAAAQDBAAAAAAACAMUAAAAAAAMAyQAAAAAAAADRA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"18819\"},\"selection_policy\":{\"id\":\"18818\"}},\"id\":\"18450\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"18429\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"18439\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"18818\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":null},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#FDAE6B\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"square_x\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"18452\",\"type\":\"Scatter\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"18442\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"source\":{\"id\":\"18450\"}},\"id\":\"18454\",\"type\":\"CDSView\"},{\"attributes\":{\"formatter\":{\"id\":\"18814\"},\"ticker\":{\"id\":\"18433\"}},\"id\":\"18432\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"18441\",\"type\":\"HelpTool\"},{\"attributes\":{\"overlay\":{\"id\":\"18442\"}},\"id\":\"18438\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"18819\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"18440\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"18814\",\"type\":\"BasicTickFormatter\"}],\"root_ids\":[\"18417\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"35b768fa-f130-4e3a-8bcd-e21004e3b5a6\",\"root_ids\":[\"18417\"],\"roots\":{\"18417\":\"42d71922-85d8-43b3-9ba1-25b4088cbc8a\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "18417"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"square_x\")\n",
    "p.scatter(x, y, marker=\"square_x\", size=sizes, color=\"#FDAE6B\",\n",
    "    fill_color=None, line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"d4c21efe-ce01-4931-97aa-aff7bc452a92\" data-root-id=\"18974\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"3ba60a34-7f0f-4f84-b5df-a177b4fa023c\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"18985\"}],\"center\":[{\"id\":\"18988\"},{\"id\":\"18992\"}],\"left\":[{\"id\":\"18989\"}],\"renderers\":[{\"id\":\"19010\"}],\"title\":{\"id\":\"18975\"},\"toolbar\":{\"id\":\"19000\"},\"x_range\":{\"id\":\"18977\"},\"x_scale\":{\"id\":\"18981\"},\"y_range\":{\"id\":\"18979\"},\"y_scale\":{\"id\":\"18983\"}},\"id\":\"18974\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"18999\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"18997\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"18979\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"18998\",\"type\":\"HelpTool\"},{\"attributes\":{\"text\":\"asterisk\"},\"id\":\"18975\",\"type\":\"Title\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"18993\"},{\"id\":\"18994\"},{\"id\":\"18995\"},{\"id\":\"18996\"},{\"id\":\"18997\"},{\"id\":\"18998\"}]},\"id\":\"19000\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"18996\",\"type\":\"SaveTool\"},{\"attributes\":{\"fill_color\":{\"value\":\"#F0027F\"},\"line_color\":{\"value\":\"#F0027F\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"asterisk\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"19008\",\"type\":\"Scatter\"},{\"attributes\":{},\"id\":\"19381\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"axis\":{\"id\":\"18985\"},\"ticker\":null},\"id\":\"18988\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"18986\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"18977\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data\":{\"size\":{\"__ndarray__\":\"AAAAAAAAJEAAAAAAAIAmQAAAAAAAAClAAAAAAACAK0AAAAAAAAAuQAAAAAAAQDBAAAAAAACAMUAAAAAAAMAyQAAAAAAAADRA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"19384\"},\"selection_policy\":{\"id\":\"19383\"}},\"id\":\"19007\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#F0027F\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#F0027F\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"asterisk\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"19009\",\"type\":\"Scatter\"},{\"attributes\":{\"source\":{\"id\":\"19007\"}},\"id\":\"19011\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"18990\",\"type\":\"BasicTicker\"},{\"attributes\":{\"axis\":{\"id\":\"18989\"},\"dimension\":1,\"ticker\":null},\"id\":\"18992\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"18981\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"19384\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"18993\",\"type\":\"PanTool\"},{\"attributes\":{\"formatter\":{\"id\":\"19381\"},\"ticker\":{\"id\":\"18986\"}},\"id\":\"18985\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"19379\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"19383\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"18983\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"18994\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"data_source\":{\"id\":\"19007\"},\"glyph\":{\"id\":\"19008\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"19009\"},\"selection_glyph\":null,\"view\":{\"id\":\"19011\"}},\"id\":\"19010\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"formatter\":{\"id\":\"19379\"},\"ticker\":{\"id\":\"18990\"}},\"id\":\"18989\",\"type\":\"LinearAxis\"},{\"attributes\":{\"overlay\":{\"id\":\"18999\"}},\"id\":\"18995\",\"type\":\"BoxZoomTool\"}],\"root_ids\":[\"18974\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"3ba60a34-7f0f-4f84-b5df-a177b4fa023c\",\"root_ids\":[\"18974\"],\"roots\":{\"18974\":\"d4c21efe-ce01-4931-97aa-aff7bc452a92\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "18974"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"asterisk\")\n",
    "p.scatter(x, y, marker=\"asterisk\", size=sizes, color=\"#F0027F\", \n",
    "    line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"e2377106-df12-4dea-b9af-14b2b2f7cfc1\" data-root-id=\"19539\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"619a3437-da8a-4778-9b6f-b68a2414f970\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"19550\"}],\"center\":[{\"id\":\"19553\"},{\"id\":\"19557\"}],\"left\":[{\"id\":\"19554\"}],\"renderers\":[{\"id\":\"19575\"}],\"title\":{\"id\":\"19540\"},\"toolbar\":{\"id\":\"19565\"},\"x_range\":{\"id\":\"19542\"},\"x_scale\":{\"id\":\"19546\"},\"y_range\":{\"id\":\"19544\"},\"y_scale\":{\"id\":\"19548\"}},\"id\":\"19539\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"19548\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"19957\",\"type\":\"Selection\"},{\"attributes\":{\"formatter\":{\"id\":\"19954\"},\"ticker\":{\"id\":\"19551\"}},\"id\":\"19550\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"19542\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"19563\",\"type\":\"HelpTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"19558\"},{\"id\":\"19559\"},{\"id\":\"19560\"},{\"id\":\"19561\"},{\"id\":\"19562\"},{\"id\":\"19563\"}]},\"id\":\"19565\",\"type\":\"Toolbar\"},{\"attributes\":{\"fill_color\":{\"value\":null},\"line_color\":{\"value\":\"#7FC97F\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"square_cross\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"19573\",\"type\":\"Scatter\"},{\"attributes\":{},\"id\":\"19559\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"19952\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"19562\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"19546\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"19555\",\"type\":\"BasicTicker\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"19564\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"19561\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"19956\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"text\":\"square_cross\"},\"id\":\"19540\",\"type\":\"Title\"},{\"attributes\":{\"data\":{\"size\":{\"__ndarray__\":\"AAAAAAAAJEAAAAAAAIAmQAAAAAAAAClAAAAAAACAK0AAAAAAAAAuQAAAAAAAQDBAAAAAAACAMUAAAAAAAMAyQAAAAAAAADRA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"19957\"},\"selection_policy\":{\"id\":\"19956\"}},\"id\":\"19572\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"axis\":{\"id\":\"19554\"},\"dimension\":1,\"ticker\":null},\"id\":\"19557\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"19954\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"axis\":{\"id\":\"19550\"},\"ticker\":null},\"id\":\"19553\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"19551\",\"type\":\"BasicTicker\"},{\"attributes\":{\"source\":{\"id\":\"19572\"}},\"id\":\"19576\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"19558\",\"type\":\"PanTool\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":null},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#7FC97F\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"square_cross\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"19574\",\"type\":\"Scatter\"},{\"attributes\":{\"formatter\":{\"id\":\"19952\"},\"ticker\":{\"id\":\"19555\"}},\"id\":\"19554\",\"type\":\"LinearAxis\"},{\"attributes\":{\"overlay\":{\"id\":\"19564\"}},\"id\":\"19560\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"data_source\":{\"id\":\"19572\"},\"glyph\":{\"id\":\"19573\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"19574\"},\"selection_glyph\":null,\"view\":{\"id\":\"19576\"}},\"id\":\"19575\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"19544\",\"type\":\"DataRange1d\"}],\"root_ids\":[\"19539\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"619a3437-da8a-4778-9b6f-b68a2414f970\",\"root_ids\":[\"19539\"],\"roots\":{\"19539\":\"e2377106-df12-4dea-b9af-14b2b2f7cfc1\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "19539"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"square_cross\")\n",
    "p.scatter(x, y, marker=\"square_cross\", size=sizes, color=\"#7FC97F\",\n",
    "    fill_color=None, line_width=2)\n",
    "show(p)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"6bb562b1-b396-4be9-8ad1-f01453112045\" data-root-id=\"20112\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"4835845d-e50b-404d-8fc8-7d1075db5b60\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"20123\"}],\"center\":[{\"id\":\"20126\"},{\"id\":\"20130\"}],\"left\":[{\"id\":\"20127\"}],\"renderers\":[{\"id\":\"20148\"}],\"title\":{\"id\":\"20113\"},\"toolbar\":{\"id\":\"20138\"},\"x_range\":{\"id\":\"20115\"},\"x_scale\":{\"id\":\"20119\"},\"y_range\":{\"id\":\"20117\"},\"y_scale\":{\"id\":\"20121\"}},\"id\":\"20112\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"formatter\":{\"id\":\"20535\"},\"ticker\":{\"id\":\"20124\"}},\"id\":\"20123\",\"type\":\"LinearAxis\"},{\"attributes\":{\"source\":{\"id\":\"20145\"}},\"id\":\"20149\",\"type\":\"CDSView\"},{\"attributes\":{\"axis\":{\"id\":\"20127\"},\"dimension\":1,\"ticker\":null},\"id\":\"20130\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"20117\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"20533\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"20128\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"20135\",\"type\":\"ResetTool\"},{\"attributes\":{\"formatter\":{\"id\":\"20533\"},\"ticker\":{\"id\":\"20128\"}},\"id\":\"20127\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"20134\",\"type\":\"SaveTool\"},{\"attributes\":{\"overlay\":{\"id\":\"20137\"}},\"id\":\"20133\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"20136\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"20535\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"20131\",\"type\":\"PanTool\"},{\"attributes\":{\"fill_color\":{\"value\":null},\"line_color\":{\"value\":\"#386CB0\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"diamond_cross\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"20146\",\"type\":\"Scatter\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":null},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#386CB0\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"diamond_cross\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"20147\",\"type\":\"Scatter\"},{\"attributes\":{\"axis\":{\"id\":\"20123\"},\"ticker\":null},\"id\":\"20126\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"20121\",\"type\":\"LinearScale\"},{\"attributes\":{\"text\":\"diamond_cross\"},\"id\":\"20113\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"20537\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"20131\"},{\"id\":\"20132\"},{\"id\":\"20133\"},{\"id\":\"20134\"},{\"id\":\"20135\"},{\"id\":\"20136\"}]},\"id\":\"20138\",\"type\":\"Toolbar\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"20137\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"data_source\":{\"id\":\"20145\"},\"glyph\":{\"id\":\"20146\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"20147\"},\"selection_glyph\":null,\"view\":{\"id\":\"20149\"}},\"id\":\"20148\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"20115\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"20119\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"20538\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"20132\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"data\":{\"size\":{\"__ndarray__\":\"AAAAAAAAJEAAAAAAAIAmQAAAAAAAAClAAAAAAACAK0AAAAAAAAAuQAAAAAAAQDBAAAAAAACAMUAAAAAAAMAyQAAAAAAAADRA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"20538\"},\"selection_policy\":{\"id\":\"20537\"}},\"id\":\"20145\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"20124\",\"type\":\"BasicTicker\"}],\"root_ids\":[\"20112\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"4835845d-e50b-404d-8fc8-7d1075db5b60\",\"root_ids\":[\"20112\"],\"roots\":{\"20112\":\"6bb562b1-b396-4be9-8ad1-f01453112045\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "20112"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"diamond_cross\")\n",
    "p.scatter(x, y, marker=\"diamond_cross\", size=sizes, color=\"#386CB0\",\n",
    "    fill_color=None, line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "  <div class=\"bk-root\" id=\"2314e70a-06a3-4e40-b9e2-1541f504cea5\" data-root-id=\"20693\"></div>\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "(function(root) {\n",
       "  function embed_document(root) {\n",
       "    \n",
       "  var docs_json = {\"638ae518-07ed-47e0-a2ee-6cb45cdd0501\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"20704\"}],\"center\":[{\"id\":\"20707\"},{\"id\":\"20711\"}],\"left\":[{\"id\":\"20708\"}],\"renderers\":[{\"id\":\"20729\"}],\"title\":{\"id\":\"20694\"},\"toolbar\":{\"id\":\"20719\"},\"x_range\":{\"id\":\"20696\"},\"x_scale\":{\"id\":\"20700\"},\"y_range\":{\"id\":\"20698\"},\"y_scale\":{\"id\":\"20702\"}},\"id\":\"20693\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"20709\",\"type\":\"BasicTicker\"},{\"attributes\":{\"fill_color\":{\"value\":null},\"line_color\":{\"value\":\"#FB8072\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"circle_cross\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"20727\",\"type\":\"Scatter\"},{\"attributes\":{},\"id\":\"20713\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"axis\":{\"id\":\"20704\"},\"ticker\":null},\"id\":\"20707\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"20696\",\"type\":\"DataRange1d\"},{\"attributes\":{\"text\":\"circle_cross\"},\"id\":\"20694\",\"type\":\"Title\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"20712\"},{\"id\":\"20713\"},{\"id\":\"20714\"},{\"id\":\"20715\"},{\"id\":\"20716\"},{\"id\":\"20717\"}]},\"id\":\"20719\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"21124\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data_source\":{\"id\":\"20726\"},\"glyph\":{\"id\":\"20727\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"20728\"},\"selection_glyph\":null,\"view\":{\"id\":\"20730\"}},\"id\":\"20729\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"overlay\":{\"id\":\"20718\"}},\"id\":\"20714\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"20700\",\"type\":\"LinearScale\"},{\"attributes\":{\"formatter\":{\"id\":\"21122\"},\"ticker\":{\"id\":\"20709\"}},\"id\":\"20708\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"20716\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"20712\",\"type\":\"PanTool\"},{\"attributes\":{\"axis\":{\"id\":\"20708\"},\"dimension\":1,\"ticker\":null},\"id\":\"20711\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"21127\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"21122\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"21126\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"source\":{\"id\":\"20726\"}},\"id\":\"20730\",\"type\":\"CDSView\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":null},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#FB8072\"},\"line_width\":{\"value\":2},\"marker\":{\"value\":\"circle_cross\"},\"size\":{\"field\":\"size\",\"units\":\"screen\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"20728\",\"type\":\"Scatter\"},{\"attributes\":{},\"id\":\"20702\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"20698\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data\":{\"size\":{\"__ndarray__\":\"AAAAAAAAJEAAAAAAAIAmQAAAAAAAAClAAAAAAACAK0AAAAAAAAAuQAAAAAAAQDBAAAAAAACAMUAAAAAAAMAyQAAAAAAAADRA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"x\":{\"__ndarray__\":\"AAAAAAAAAMAAAAAAAAD4vwAAAAAAAPC/AAAAAAAA4L8AAAAAAAAAAAAAAAAAAOA/AAAAAAAA8D8AAAAAAAD4PwAAAAAAAABA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]},\"y\":{\"__ndarray__\":\"AAAAAAAAEEAAAAAAAAACQAAAAAAAAPA/AAAAAAAA0D8AAAAAAAAAAAAAAAAAANA/AAAAAAAA8D8AAAAAAAACQAAAAAAAABBA\",\"dtype\":\"float64\",\"order\":\"little\",\"shape\":[9]}},\"selected\":{\"id\":\"21127\"},\"selection_policy\":{\"id\":\"21126\"}},\"id\":\"20726\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"20717\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"20715\",\"type\":\"SaveTool\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":0.5,\"fill_color\":\"lightgrey\",\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":1.0,\"line_color\":\"black\",\"line_dash\":[4,4],\"line_width\":2,\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"20718\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"20705\",\"type\":\"BasicTicker\"},{\"attributes\":{\"formatter\":{\"id\":\"21124\"},\"ticker\":{\"id\":\"20705\"}},\"id\":\"20704\",\"type\":\"LinearAxis\"}],\"root_ids\":[\"20693\"]},\"title\":\"Bokeh Application\",\"version\":\"2.1.1\"}};\n",
       "  var render_items = [{\"docid\":\"638ae518-07ed-47e0-a2ee-6cb45cdd0501\",\"root_ids\":[\"20693\"],\"roots\":{\"20693\":\"2314e70a-06a3-4e40-b9e2-1541f504cea5\"}}];\n",
       "  root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
       "\n",
       "  }\n",
       "  if (root.Bokeh !== undefined) {\n",
       "    embed_document(root);\n",
       "  } else {\n",
       "    var attempts = 0;\n",
       "    var timer = setInterval(function(root) {\n",
       "      if (root.Bokeh !== undefined) {\n",
       "        clearInterval(timer);\n",
       "        embed_document(root);\n",
       "      } else {\n",
       "        attempts++;\n",
       "        if (attempts > 100) {\n",
       "          clearInterval(timer);\n",
       "          console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
       "        }\n",
       "      }\n",
       "    }, 10, root)\n",
       "  }\n",
       "})(window);"
      ],
      "application/vnd.bokehjs_exec.v0+json": ""
     },
     "metadata": {
      "application/vnd.bokehjs_exec.v0+json": {
       "id": "20693"
      }
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "p = figure(title=\"circle_cross\")\n",
    "p.scatter(x, y, marker=\"circle_cross\", size=sizes, color=\"#FB8072\",\n",
    "    fill_color=None, line_width=2)\n",
    "show(p)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
